crypto: Initialise AES-ECB decode context correctly

This fixes Apple DH
v0.7
Andri Yngvason 2023-11-04 23:12:48 +00:00
parent 823870f88e
commit 5ef65d2c2b
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ static struct crypto_cipher* crypto_cipher_new_aes128_ecb(
aes128_set_encrypt_key(&self->enc_ctx.aes128_ecb, enc_key); aes128_set_encrypt_key(&self->enc_ctx.aes128_ecb, enc_key);
if (dec_key) if (dec_key)
aes128_set_decrypt_key(&self->enc_ctx.aes128_ecb, dec_key); aes128_set_decrypt_key(&self->dec_ctx.aes128_ecb, dec_key);
self->encrypt = crypto_cipher_aes128_ecb_encrypt; self->encrypt = crypto_cipher_aes128_ecb_encrypt;
self->decrypt = crypto_cipher_aes128_ecb_decrypt; self->decrypt = crypto_cipher_aes128_ecb_decrypt;