diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-10-27 19:34:17 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-12-09 22:09:19 +0000 |
commit | cf517a6d3d2548b1a79155df5c384f4a4b3924d6 (patch) | |
tree | b766f06cc865aaa6f7aa9f06898eddcc76f1b41a /include | |
parent | c535979126bb344420e6ce6654e050f6af6ae599 (diff) |
add ECDSA_size to ec_asn1.c
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ec.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h index ed1fea9575..f0f2ba60df 100644 --- a/include/openssl/ec.h +++ b/include/openssl/ec.h @@ -1089,6 +1089,12 @@ int ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen, int ECDSA_verify(int type, const unsigned char *dgst, int dgstlen, const unsigned char *sig, int siglen, EC_KEY *eckey); +/** Returns the maximum length of the DER encoded signature + * \param eckey EC_KEY object + * \return numbers of bytes required for the DER encoded signature + */ +int ECDSA_size(const EC_KEY *eckey); + # define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x) # ifndef __cplusplus |