mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Fix engine cryptodev: pointer to IV
Currently point to wrong address Signed-off-by: Kirill Marinushkin <k.marinushkin@gmail.com> Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
edeb3fd295
commit
c32b9dcac2
@ -446,7 +446,7 @@ cryptodev_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
||||
cryp.op = EVP_CIPHER_CTX_encrypting(ctx) ? COP_ENCRYPT : COP_DECRYPT;
|
||||
|
||||
if (EVP_CIPHER_CTX_iv_length(ctx) > 0) {
|
||||
cryp.iv = *(caddr_t*) EVP_CIPHER_CTX_iv(ctx);
|
||||
cryp.iv = (caddr_t) EVP_CIPHER_CTX_iv(ctx);
|
||||
if (!EVP_CIPHER_CTX_encrypting(ctx)) {
|
||||
iiv = in + inl - EVP_CIPHER_CTX_iv_length(ctx);
|
||||
memcpy(save_iv, iiv, EVP_CIPHER_CTX_iv_length(ctx));
|
||||
|
Loading…
Reference in New Issue
Block a user