Browse Source

Fix Aes-xts potential failure on aarch64

Add return value for aarch64 in the init key function.
This will avoid overwriting the stream pointers of aarch64.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13133)
master
XiaokangQian 2 years ago
committed by Tomas Mraz
parent
commit
ec5059c3ef
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      providers/implementations/ciphers/cipher_aes_xts_hw.c

+ 1
- 0
providers/implementations/ciphers/cipher_aes_xts_hw.c View File

@ -59,6 +59,7 @@ static int cipher_hw_aes_xts_generic_initkey(PROV_CIPHER_CTX *ctx,
XTS_SET_KEY_FN(HWAES_set_encrypt_key, HWAES_set_decrypt_key,
HWAES_encrypt, HWAES_decrypt,
stream_enc, stream_dec);
return 1;
} else
#endif /* HWAES_CAPABLE */


Loading…
Cancel
Save