mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
OpenSSL: Fix hmac_sha384_vector() implementation
The output length was incorrect (32 from the copy-pasted SHA256 version). Fix this to return the correct number of octets (48) for SHA384. This fixes incorrect key derivation in FILS when using the SHA384-based AKM. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
dd8f02349b
commit
aeecd4eaec
@ -1031,7 +1031,7 @@ int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
|
||||
const u8 *addr[], const size_t *len, u8 *mac)
|
||||
{
|
||||
return openssl_hmac_vector(EVP_sha384(), key, key_len, num_elem, addr,
|
||||
len, mac, 32);
|
||||
len, mac, 48);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user