diff mbox series

[3/9] crypto: add hmac_sha384 support for PMKID derivation

Message ID 20230410220135.373872-4-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series Support FT-8021X-SHA384 | expand

Commit Message

James Prestwood April 10, 2023, 10:01 p.m. UTC
SHA384 is required by several AKMs
---
 src/crypto.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/src/crypto.c b/src/crypto.c
index f8aba7d8..6b8a7b1e 100644
--- a/src/crypto.c
+++ b/src/crypto.c
@@ -1132,6 +1132,8 @@  bool crypto_derive_pmkid(const uint8_t *pmk, size_t key_len,
 		return hmac_sha1(pmk, key_len, data, 20, out_pmkid, 16);
 	case L_CHECKSUM_SHA256:
 		return hmac_sha256(pmk, key_len, data, 20, out_pmkid, 16);
+	case L_CHECKSUM_SHA384:
+		return hmac_sha384(pmk, key_len, data, 20, out_pmkid, 16);
 	default:
 		l_error("Checksum type %u is not valid", checksum);
 		return false;