diff options
author | Andy Polyakov <appro@openssl.org> | 2011-07-11 13:54:53 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2011-07-11 13:54:53 +0000 |
commit | a355cf9bf528d44344694fbb3ebb5a9f3fa10a75 (patch) | |
tree | 7e40dd6489c35d32cff9b7d72af4b941d17c1aec /crypto/evp/evp.h | |
parent | 735ebc2de7a77661d994adc75550e2573466feac (diff) |
evp.h: add flag to distinguish AEAD ciphers and pair of control codes...
Diffstat (limited to 'crypto/evp/evp.h')
-rw-r--r-- | crypto/evp/evp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index 2bfeb85e7d..157de07b04 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -361,6 +361,7 @@ struct evp_cipher_st * as finalisation. */ #define EVP_CIPH_FLAG_CUSTOM_CIPHER 0x100000 +#define EVP_CIPH_FLAG_AEAD_CIPHER 0x200000 /* ctrl() values */ @@ -383,6 +384,13 @@ struct evp_cipher_st #define EVP_CTRL_CCM_SET_TAG EVP_CTRL_GCM_SET_TAG #define EVP_CTRL_CCM_SET_L 0x14 #define EVP_CTRL_CCM_SET_MSGLEN 0x15 +/* AEAD cipher deduces payload length and returns number of bytes + * required to store MAC and eventual padding. Subsequent call to + * EVP_Cipher even appends/verifies MAC. + */ +#define EVP_CTRL_AEAD_TLS1_AAD 0x16 +/* Used by composite AEAD ciphers, no-op in GCM, CCM... */ +#define EVP_CTRL_AEAD_SET_MAC_KEY 0x17 typedef struct evp_cipher_info_st { |