Message ID | 20230410220135.373872-4-prestwoj@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Support FT-8021X-SHA384 | expand |
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;