You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
565 B

  1. #ifndef _DML_WASM_STUB_ECDSA_H_
  2. #define _DML_WASM_STUB_ECDSA_H_
  3. #include <openssl/ossl_typ.h>
  4. void EC_KEY_free(EC_KEY *key);
  5. typedef struct ECDSA_SIG_st {
  6. BIGNUM *r;
  7. BIGNUM *s;
  8. } ECDSA_SIG;
  9. static inline int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey)
  10. {
  11. return 0;
  12. }
  13. static inline ECDSA_SIG *ECDSA_SIG_new(void)
  14. {
  15. return NULL;
  16. }
  17. static inline ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dgst_len, EC_KEY *eckey)
  18. {
  19. return NULL;
  20. }
  21. static inline void ECDSA_SIG_free(ECDSA_SIG *sig)
  22. {
  23. }
  24. #endif