diff options
author | JitendraLulla <lullajd@yahoo.com> | 2017-11-11 12:01:58 +0530 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-12-08 10:39:52 +0000 |
commit | 49ea0f09833fb526a12f9402fa2fcf0f4b735d5e (patch) | |
tree | 57ab449718a0864366a750a6fbc16b55ec37da37 /engines/e_afalg.h | |
parent | cbe2964821bb063f61ed2544cfce196ec1c0d62b (diff) |
extending afalg with aes-cbc-192/256, afalgtest.c also updated accordingly. comments from matt, Stephen considered
fix indentation, remove printf from afalgtest.c
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4717)
Diffstat (limited to 'engines/e_afalg.h')
-rw-r--r-- | engines/e_afalg.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/e_afalg.h b/engines/e_afalg.h index 948d67e584..2c03c448d6 100644 --- a/engines/e_afalg.h +++ b/engines/e_afalg.h @@ -41,6 +41,8 @@ # define AES_BLOCK_SIZE 16 # endif # define AES_KEY_SIZE_128 16 +# define AES_KEY_SIZE_192 24 +# define AES_KEY_SIZE_256 32 # define AES_IV_LEN 16 # define MAX_INFLIGHTS 1 @@ -51,6 +53,19 @@ typedef enum { MODE_ASYNC } op_mode; +enum { + AES_CBC_128 = 0, + AES_CBC_192, + AES_CBC_256 +}; + +struct cbc_cipher_handles { + int key_size; + EVP_CIPHER *_hidden; +}; + +typedef struct cbc_cipher_handles cbc_handles; + struct afalg_aio_st { int efd; op_mode mode; |