summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2013-10-08 23:38:05 +0200
committerAndy Polyakov <appro@openssl.org>2013-10-08 23:38:05 +0200
commitb1de640f035dd1c34a18d611b4d22304733c437a (patch)
tree1019150f684b3f7ec00eeea8ca177546ab0128a4 /crypto
parent61ba602af5d7c3a642d732c4cc6518ed81dfc1c6 (diff)
evp/evp.h: add multi-block contstants and parameter type.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/evp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h
index 69667dfa27..fcc75e77aa 100644
--- a/crypto/evp/evp.h
+++ b/crypto/evp/evp.h
@@ -364,6 +364,7 @@ struct evp_cipher_st
*/
#define EVP_CIPH_FLAG_CUSTOM_CIPHER 0x100000
#define EVP_CIPH_FLAG_AEAD_CIPHER 0x200000
+#define EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK 0x400000
/* Cipher context flag to indicate we can handle
* wrap mode: if allowed in older applications it could
@@ -403,6 +404,17 @@ struct evp_cipher_st
/* Set the GCM invocation field, decrypt only */
#define EVP_CTRL_GCM_SET_IV_INV 0x18
+#define EVP_CTRL_TLS1_1_MULTIBLOCK_AAD 0x19
+#define EVP_CTRL_TLS1_1_MULTIBLOCK_ENCRYPT 0x1a
+#define EVP_CTRL_TLS1_1_MULTIBLOCK_DECRYPT 0x1b
+
+typedef struct {
+ unsigned char *out;
+ const unsigned char *inp;
+ size_t len;
+ unsigned int interleave;
+} EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM;
+
/* GCM TLS constants */
/* Length of fixed part of IV derived from PRF */
#define EVP_GCM_TLS_FIXED_IV_LEN 4