Lines Matching defs:hash
461 u8 hash[SHA1_MAC_LEN];
469 if (sha1_vector(2, addr, len, hash) < 0)
472 addr[0] = hash;
475 if (sha1_vector(1, addr, len, hash) < 0)
480 os_memcpy(out, hash, out_len);
485 os_memcpy(out, hash, u);
490 /* B = copies of Ai (final hash value) */
492 B[i] = hash[i % u];
555 u8 hash[MD5_MAC_LEN];
572 if (md5_vector(2, addr, len, hash) < 0)
574 addr[0] = hash;
577 if (md5_vector(1, addr, len, hash) < 0)
581 wpa_hexdump_key(MSG_DEBUG, "PKCS #5: DES key", hash, 8);
582 wpa_hexdump_key(MSG_DEBUG, "PKCS #5: DES IV", hash + 8, 8);
584 return crypto_cipher_init(CRYPTO_CIPHER_ALG_DES, hash + 8, hash, 8);