Lines Matching refs:hash
439 u8 hash[SHA1_MAC_LEN]; in pkcs12_key_gen() local
447 if (sha1_vector(2, addr, len, hash) < 0) in pkcs12_key_gen()
450 addr[0] = hash; in pkcs12_key_gen()
453 if (sha1_vector(1, addr, len, hash) < 0) in pkcs12_key_gen()
458 os_memcpy(out, hash, out_len); in pkcs12_key_gen()
463 os_memcpy(out, hash, u); in pkcs12_key_gen()
470 B[i] = hash[i % u]; in pkcs12_key_gen()
533 u8 hash[MD5_MAC_LEN]; in pkcs5_crypto_init() local
550 if (md5_vector(2, addr, len, hash) < 0) in pkcs5_crypto_init()
552 addr[0] = hash; in pkcs5_crypto_init()
555 if (md5_vector(1, addr, len, hash) < 0) in pkcs5_crypto_init()
559 wpa_hexdump_key(MSG_DEBUG, "PKCS #5: DES key", hash, 8); in pkcs5_crypto_init()
560 wpa_hexdump_key(MSG_DEBUG, "PKCS #5: DES IV", hash + 8, 8); in pkcs5_crypto_init()
562 return crypto_cipher_init(CRYPTO_CIPHER_ALG_DES, hash + 8, hash, 8); in pkcs5_crypto_init()