Lines Matching refs:key
18 * @key: Key for PRF
19 * @key_len: Length of the key in bytes
21 * @data: Extra data to bind into the key
23 * @buf: Buffer for the generated pseudo-random key
24 * @buf_len: Number of bytes of key to generate
28 * given key.
30 int sha256_prf(const u8 *key, size_t key_len, const char *label,
33 return sha256_prf_bits(key, key_len, label, data, data_len, buf,
40 * @key: Key for KDF
41 * @key_len: Length of the key in bytes
43 * @data: Extra data to bind into the key
45 * @buf: Buffer for the generated pseudo-random key
46 * @buf_len: Number of bits of key to generate
50 * given key. If the requested buf_len is not divisible by eight, the least
54 int sha256_prf_bits(const u8 *key, size_t key_len, const char *label,
81 if (hmac_sha256_vector(key, key_len, 4, addr, len,
86 if (hmac_sha256_vector(key, key_len, 4, addr, len,