diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-10-22 18:48:59 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-12-09 22:09:17 +0000 |
commit | a22a7e70899a28fff4719d458e12f8bfcd457f62 (patch) | |
tree | fb8f4510103452589f6ba97873d5585bc77056a0 /include | |
parent | 647b2238755efb4a3dc6a6a6141c0ba1b2e54beb (diff) |
Add compute key support to EC_KEY_METHOD
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h index de0e5760cb..99c945a184 100644 --- a/include/openssl/ec.h +++ b/include/openssl/ec.h @@ -749,6 +749,7 @@ typedef struct ec_key_method_st EC_KEY_METHOD; /* some values for the flags field */ # define EC_FLAG_NON_FIPS_ALLOW 0x1 # define EC_FLAG_FIPS_CHECKED 0x2 +# define EC_FLAG_COFACTOR_ECDH 0x1000 /** Creates a new EC_KEY object. * \return EC_KEY object or NULL if an error occurred. @@ -994,6 +995,10 @@ int ECDH_KDF_X9_62(unsigned char *out, size_t outlen, const unsigned char *sinfo, size_t sinfolen, const EVP_MD *md); +int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, + EC_KEY *ecdh, void *(*KDF) (const void *in, size_t inlen, + void *out, size_t *outlen)); + # define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x) # ifndef __cplusplus |