Lines Matching refs:hash
529 int sae_hash(size_t hash_len, const u8 *data, size_t len, u8 *hash) in sae_hash() argument
532 return sha256_vector(1, &data, &len, hash); in sae_hash()
535 return sha384_vector(1, &data, &len, hash); in sae_hash()
539 return sha512_vector(1, &data, &len, hash); in sae_hash()
547 const u8 *pubkey, size_t pubkey_len, u8 *hash) in sae_pk_hash_sig_data() argument
588 hash) < 0) in sae_pk_hash_sig_data()
591 hash, hash_len); in sae_pk_hash_sig_data()
608 u8 hash[SAE_MAX_HASH_LEN]; in sae_write_confirm_pk() local
646 wpabuf_len(pk->pubkey), hash) < 0) in sae_write_confirm_pk()
648 sig = crypto_ec_key_sign(key, hash, hash_len); in sae_write_confirm_pk()
710 u8 hash[SAE_MAX_HASH_LEN]; in sae_pk_valid_fingerprint() local
736 res = sae_hash(hash_len, hash_data, hash_data_len, hash); in sae_pk_valid_fingerprint()
741 hash, hash_len); in sae_pk_valid_fingerprint()
753 pos = &hash[tmp->fingerprint_bits / 8]; in sae_pk_valid_fingerprint()
756 wpa_hexdump(MSG_DEBUG, "SAE-PK: Fingerprint", hash, in sae_pk_valid_fingerprint()
758 res = os_memcmp_const(hash, tmp->fingerprint, tmp->fingerprint_bytes); in sae_pk_valid_fingerprint()
779 u8 hash[SAE_MAX_HASH_LEN]; in sae_check_confirm_pk() local
863 k_ap, k_ap_len, hash) < 0) { in sae_check_confirm_pk()
868 res = crypto_ec_key_verify_signature(key, hash, hash_len, in sae_check_confirm_pk()