summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorKirill Marinushkin <k.marinushkin@gmail.com>2016-05-05 20:51:07 +0200
committerRichard Levitte <levitte@openssl.org>2016-05-14 11:29:09 +0200
commitc32b9dcac2d70f3868b4b22fd7be0e5ccd854c52 (patch)
treebc647be6da8e37a24ec8bbf27a9502f489001c14 /crypto
parentedeb3fd2955c42c3e249a0539ef75c21db8c5ca1 (diff)
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/engine/eng_cryptodev.c2
1 files changed, 1 insertions, 1 deletions
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));