evp/e_[aes|camellia].c: fix typo in CBC subroutine.
It worked because it was never called. (cherry picked from commit e9c80e04c1a3b5a0de8e666155ab4ecb2697a77d)
This commit is contained in:
parent
e34b7e99fd
commit
68e6ac4379
@ -1001,7 +1001,7 @@ static int aes_cbc_cipher(EVP_CIPHER_CTX *ctx,unsigned char *out,
|
||||
else if (ctx->encrypt)
|
||||
CRYPTO_cbc128_encrypt(in,out,len,&dat->ks,ctx->iv,dat->block);
|
||||
else
|
||||
CRYPTO_cbc128_encrypt(in,out,len,&dat->ks,ctx->iv,dat->block);
|
||||
CRYPTO_cbc128_decrypt(in,out,len,&dat->ks,ctx->iv,dat->block);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -305,7 +305,7 @@ static int camellia_cbc_cipher(EVP_CIPHER_CTX *ctx,unsigned char *out,
|
||||
else if (ctx->encrypt)
|
||||
CRYPTO_cbc128_encrypt(in,out,len,&dat->ks,ctx->iv,dat->block);
|
||||
else
|
||||
CRYPTO_cbc128_encrypt(in,out,len,&dat->ks,ctx->iv,dat->block);
|
||||
CRYPTO_cbc128_decrypt(in,out,len,&dat->ks,ctx->iv,dat->block);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user