6 * Keyed-Hashing for Message Authentication
9 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 #include <ipxe/crypto.h>
16 * @v digest Digest algorithm to use
17 * @v digest_ctx Digest context
19 * @v len Length of data
21 static inline void hmac_update ( struct digest_algorithm *digest,
22 void *digest_ctx, const void *data,
24 digest_update ( digest, digest_ctx, data, len );
27 extern void hmac_init ( struct digest_algorithm *digest, void *digest_ctx,
28 void *key, size_t *key_len );
29 extern void hmac_final ( struct digest_algorithm *digest, void *digest_ctx,
30 void *key, size_t *key_len, void *hmac );
32 #endif /* _IPXE_HMAC_H */