wolfSSL 3.11.1 for TLS1.3 beta
Fork of wolfSSL by
wolfssl/openssl/ecdsa.h@11:cee25a834751, 2017-05-30 (annotated)
- Committer:
- wolfSSL
- Date:
- Tue May 30 01:44:10 2017 +0000
- Revision:
- 11:cee25a834751
wolfSSL 3.11.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wolfSSL | 11:cee25a834751 | 1 | /* ecdsa.h for openssl */ |
wolfSSL | 11:cee25a834751 | 2 | |
wolfSSL | 11:cee25a834751 | 3 | #ifndef WOLFSSL_ECDSA_H_ |
wolfSSL | 11:cee25a834751 | 4 | #define WOLFSSL_ECDSA_H_ |
wolfSSL | 11:cee25a834751 | 5 | |
wolfSSL | 11:cee25a834751 | 6 | #include <wolfssl/openssl/bn.h> |
wolfSSL | 11:cee25a834751 | 7 | |
wolfSSL | 11:cee25a834751 | 8 | |
wolfSSL | 11:cee25a834751 | 9 | #ifdef __cplusplus |
wolfSSL | 11:cee25a834751 | 10 | extern "C" { |
wolfSSL | 11:cee25a834751 | 11 | #endif |
wolfSSL | 11:cee25a834751 | 12 | |
wolfSSL | 11:cee25a834751 | 13 | #ifndef WOLFSSL_ECDSA_TYPE_DEFINED /* guard on redeclaration */ |
wolfSSL | 11:cee25a834751 | 14 | typedef struct WOLFSSL_ECDSA_SIG WOLFSSL_ECDSA_SIG; |
wolfSSL | 11:cee25a834751 | 15 | #define WOLFSSL_ECDSA_TYPE_DEFINED |
wolfSSL | 11:cee25a834751 | 16 | #endif |
wolfSSL | 11:cee25a834751 | 17 | |
wolfSSL | 11:cee25a834751 | 18 | typedef WOLFSSL_ECDSA_SIG ECDSA_SIG; |
wolfSSL | 11:cee25a834751 | 19 | |
wolfSSL | 11:cee25a834751 | 20 | struct WOLFSSL_ECDSA_SIG { |
wolfSSL | 11:cee25a834751 | 21 | WOLFSSL_BIGNUM *r; |
wolfSSL | 11:cee25a834751 | 22 | WOLFSSL_BIGNUM *s; |
wolfSSL | 11:cee25a834751 | 23 | }; |
wolfSSL | 11:cee25a834751 | 24 | |
wolfSSL | 11:cee25a834751 | 25 | WOLFSSL_API void wolfSSL_ECDSA_SIG_free(WOLFSSL_ECDSA_SIG *sig); |
wolfSSL | 11:cee25a834751 | 26 | WOLFSSL_API WOLFSSL_ECDSA_SIG *wolfSSL_ECDSA_SIG_new(void); |
wolfSSL | 11:cee25a834751 | 27 | WOLFSSL_API WOLFSSL_ECDSA_SIG *wolfSSL_ECDSA_do_sign(const unsigned char *dgst, |
wolfSSL | 11:cee25a834751 | 28 | int dgst_len, |
wolfSSL | 11:cee25a834751 | 29 | WOLFSSL_EC_KEY *eckey); |
wolfSSL | 11:cee25a834751 | 30 | WOLFSSL_API int wolfSSL_ECDSA_do_verify(const unsigned char *dgst, |
wolfSSL | 11:cee25a834751 | 31 | int dgst_len, |
wolfSSL | 11:cee25a834751 | 32 | const WOLFSSL_ECDSA_SIG *sig, |
wolfSSL | 11:cee25a834751 | 33 | WOLFSSL_EC_KEY *eckey); |
wolfSSL | 11:cee25a834751 | 34 | |
wolfSSL | 11:cee25a834751 | 35 | #define ECDSA_SIG_free wolfSSL_ECDSA_SIG_free |
wolfSSL | 11:cee25a834751 | 36 | #define ECDSA_SIG_new wolfSSL_ECDSA_SIG_new |
wolfSSL | 11:cee25a834751 | 37 | #define ECDSA_do_sign wolfSSL_ECDSA_do_sign |
wolfSSL | 11:cee25a834751 | 38 | #define ECDSA_do_verify wolfSSL_ECDSA_do_verify |
wolfSSL | 11:cee25a834751 | 39 | |
wolfSSL | 11:cee25a834751 | 40 | #ifdef __cplusplus |
wolfSSL | 11:cee25a834751 | 41 | } /* extern "C" */ |
wolfSSL | 11:cee25a834751 | 42 | #endif |
wolfSSL | 11:cee25a834751 | 43 | |
wolfSSL | 11:cee25a834751 | 44 | #endif /* header */ |
wolfSSL | 11:cee25a834751 | 45 | |
wolfSSL | 11:cee25a834751 | 46 |