diff options
author | Matt Caswell <matt@openssl.org> | 2015-09-22 12:11:24 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-03-07 22:26:04 +0100 |
commit | 98ee75439d7e844de6c063a4be5bd09b3cc9db53 (patch) | |
tree | 014bfd6c0ef4670574466b10fe17449be2264649 /crypto/evp/evp_lib.c | |
parent | Add defines for pipeline capable ciphers (diff) | |
download | openssl-98ee75439d7e844de6c063a4be5bd09b3cc9db53.tar.xz openssl-98ee75439d7e844de6c063a4be5bd09b3cc9db53.zip |
Update the dasync engine to add a pipeline cipher
Implement aes128-cbc as a pipeline capable cipher in the dasync engine.
As dasync is just a dummy engine, it actually just performs the parallel
encrypts/decrypts in serial.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/evp/evp_lib.c')
-rw-r--r-- | crypto/evp/evp_lib.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/evp/evp_lib.c b/crypto/evp/evp_lib.c index a1636284c0..7135381a21 100644 --- a/crypto/evp/evp_lib.c +++ b/crypto/evp/evp_lib.c @@ -261,6 +261,16 @@ void *EVP_CIPHER_CTX_cipher_data(const EVP_CIPHER_CTX *ctx) return ctx->cipher_data; } +void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data) +{ + void *old_cipher_data; + + old_cipher_data = ctx->cipher_data; + ctx->cipher_data = cipher_data; + + return old_cipher_data; +} + int EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) { return cipher->iv_len; |