diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-02-08 15:31:35 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-02-08 15:31:35 +0000 |
commit | c8ef656df28d1d21e5168191f959764da3a97122 (patch) | |
tree | 955dd210121291dce9fa757d10aa3c0774606e14 /crypto/evp/evp.h | |
parent | 8c968e0355151e1e5033b6793b61320ff400c88a (diff) |
Make CMAC API similar to HMAC API. Add methods for CMAC.
Diffstat (limited to 'crypto/evp/evp.h')
-rw-r--r-- | crypto/evp/evp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index f8fbe5a586..96f83b8f62 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -116,6 +116,7 @@ #define EVP_PKEY_DH NID_dhKeyAgreement #define EVP_PKEY_EC NID_X9_62_id_ecPublicKey #define EVP_PKEY_HMAC NID_hmac +#define EVP_PKEY_CMAC NID_cmac #ifdef __cplusplus extern "C" { @@ -1042,10 +1043,16 @@ void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth, #define EVP_PKEY_CTRL_CMS_DECRYPT 10 #define EVP_PKEY_CTRL_CMS_SIGN 11 +#define EVP_PKEY_CTRL_CIPHER 12 + #define EVP_PKEY_ALG_CTRL 0x1000 #define EVP_PKEY_FLAG_AUTOARGLEN 2 +/* Method handles all operations: don't assume any digest related + * defaults. + */ +#define EVP_PKEY_FLAG_SIGCTX_CUSTOM 4 const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); EVP_PKEY_METHOD* EVP_PKEY_meth_new(int id, int flags); |