提交 0b3a231e 编写于 作者: R Rich Salz 提交者: Rich Salz

RT4247: Add missing patch

Missed the camellia EVP update.
Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
上级 3f22ed2f
......@@ -119,10 +119,10 @@ static int cmll_t4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
const unsigned char *iv, int enc)
{
int ret, mode, bits;
EVP_CAMELLIA_KEY *dat = (EVP_CAMELLIA_KEY *) ctx->cipher_data;
EVP_CAMELLIA_KEY *dat = (EVP_CAMELLIA_KEY *) EVP_CIPHER_CTX_cipher_data(ctx);
mode = ctx->cipher->flags & EVP_CIPH_MODE;
bits = ctx->key_len * 8;
mode = EVP_CIPHER_CTX_mode(ctx);
bits = EVP_CIPHER_CTX_key_length(ctx) * 8;
cmll_t4_set_key(key, bits, &dat->ks);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册