6 * Keyed-Hashing for Message Authentication
9 #include <gpxe/crypto.h>
14 * @v digest Digest algorithm to use
15 * @v digest_ctx Digest context
17 * @v len Length of data
19 static inline void hmac_update ( struct digest_algorithm
*digest
,
20 void *digest_ctx
, const void *data
,
22 digest_update ( digest
, digest_ctx
, data
, len
);
25 extern void hmac_init ( struct digest_algorithm
*digest
, void *digest_ctx
,
26 void *key
, size_t *key_len
);
27 extern void hmac_final ( struct digest_algorithm
*digest
, void *digest_ctx
,
28 void *key
, size_t *key_len
, void *hmac
);
30 #endif /* _GPXE_HMAC_H */