From: Kirill Marinushkin Date: Thu, 5 May 2016 18:51:07 +0000 (+0200) Subject: Fix engine cryptodev: pointer to IV X-Git-Tag: OpenSSL_1_1_0-pre6~843 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c32b9dcac2d70f3868b4b22fd7be0e5ccd854c52;p=oweals%2Fopenssl.git Fix engine cryptodev: pointer to IV Currently point to wrong address Signed-off-by: Kirill Marinushkin Reviewed-by: Kurt Roeckx Reviewed-by: Richard Levitte --- diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c index 195912348c..bb7f59e025 100644 --- a/crypto/engine/eng_cryptodev.c +++ b/crypto/engine/eng_cryptodev.c @@ -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));