]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OpenSSL: Fix hmac_sha384_vector() implementation
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 16 Feb 2017 18:38:09 +0000 (20:38 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 16 Feb 2017 18:59:06 +0000 (20:59 +0200)
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>
src/crypto/crypto_openssl.c

index b5ffeea0821ae33253939fe1ff6d5350a37a82c6..5f7896c85e43d54f6e42eb3dacabd5f226a06e56 100644 (file)
@@ -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);
 }