iPXE
hkdf.h
Go to the documentation of this file.
1#ifndef _IPXE_HKDF_H
2#define _IPXE_HKDF_H
3
4/** @file
5 *
6 * HMAC-based Extract-and-Expand Key Derivation Function (HKDF)
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <ipxe/crypto.h>
14
15extern void hkdf_extract ( struct digest_algorithm *digest, const void *salt,
16 size_t salt_len, const void *ikm, size_t ikm_len,
17 void *prk );
18extern void hkdf_expand ( struct digest_algorithm *digest, const void *prk,
19 const void *info, size_t info_len, void *out,
20 size_t len );
21
22#endif /* _IPXE_HKDF_H */
__be32 out[4]
Definition CIB_PRM.h:8
u32 info
Definition ar9003_mac.h:0
ring len
Length.
Definition dwmac.h:226
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:921
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:951
void hkdf_expand(struct digest_algorithm *digest, const void *prk, const void *info, size_t info_len, void *out, size_t len)
Expand pseudorandom key.
Definition hkdf.c:95
void hkdf_extract(struct digest_algorithm *digest, const void *salt, size_t salt_len, const void *ikm, size_t ikm_len, void *prk)
Extract fixed-length pseudorandom key.
Definition hkdf.c:56
uint8_t info_len
Reject information length.
Definition ib_mad.h:7
Cryptographic API.
A message digest algorithm.
Definition crypto.h:19