Lines Matching defs: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
27 * given key.
29 void sha256_prf(const u8 *key, size_t key_len, const char *label,
32 sha256_prf_bits(key, key_len, label, data, data_len, buf, buf_len * 8);
38 * @key: Key for KDF
39 * @key_len: Length of the key in bytes
41 * @data: Extra data to bind into the key
43 * @buf: Buffer for the generated pseudo-random key
44 * @buf_len: Number of bits of key to generate
47 * given key. If the requested buf_len is not divisible by eight, the least
51 void sha256_prf_bits(const u8 *key, size_t key_len, const char *label,
78 hmac_sha256_vector(key, key_len, 4, addr, len,
82 hmac_sha256_vector(key, key_len, 4, addr, len, hash);