PASN: Change pasn_use_384() to be a non-static function
libpasn.so users, e.g., Wi-Fi Aware module, could use this function while deriving protocol specific keys using KDK. Move this function to global scope to allow that. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
ea241cbe9d
commit
fff81a468f
2 changed files with 2 additions and 1 deletions
|
@ -1320,7 +1320,7 @@ int wpa_ft_parse_ies(const u8 *ies, size_t ies_len, struct wpa_ft_ies *parse,
|
||||||
* PASN frame. SHA-256 is used as the hash algorithm, except for the ciphers
|
* PASN frame. SHA-256 is used as the hash algorithm, except for the ciphers
|
||||||
* 00-0F-AC:9 and 00-0F-AC:10 for which SHA-384 is used.
|
* 00-0F-AC:9 and 00-0F-AC:10 for which SHA-384 is used.
|
||||||
*/
|
*/
|
||||||
static bool pasn_use_sha384(int akmp, int cipher)
|
bool pasn_use_sha384(int akmp, int cipher)
|
||||||
{
|
{
|
||||||
return (akmp == WPA_KEY_MGMT_PASN && (cipher == WPA_CIPHER_CCMP_256 ||
|
return (akmp == WPA_KEY_MGMT_PASN && (cipher == WPA_CIPHER_CCMP_256 ||
|
||||||
cipher == WPA_CIPHER_GCMP_256)) ||
|
cipher == WPA_CIPHER_GCMP_256)) ||
|
||||||
|
|
|
@ -711,6 +711,7 @@ int wpa_use_cmac(int akmp);
|
||||||
int wpa_use_aes_key_wrap(int akmp);
|
int wpa_use_aes_key_wrap(int akmp);
|
||||||
int fils_domain_name_hash(const char *domain, u8 *hash);
|
int fils_domain_name_hash(const char *domain, u8 *hash);
|
||||||
|
|
||||||
|
bool pasn_use_sha384(int akmp, int cipher);
|
||||||
int pasn_pmk_to_ptk(const u8 *pmk, size_t pmk_len,
|
int pasn_pmk_to_ptk(const u8 *pmk, size_t pmk_len,
|
||||||
const u8 *spa, const u8 *bssid,
|
const u8 *spa, const u8 *bssid,
|
||||||
const u8 *dhss, size_t dhss_len,
|
const u8 *dhss, size_t dhss_len,
|
||||||
|
|
Loading…
Reference in a new issue