mirror of
https://github.com/xcat2/xNBA.git
synced 2026-01-13 02:22:30 +00:00
Access to the gpxe.org and etherboot.org domains and associated resources has been revoked by the registrant of the domain. Work around this problem by renaming project from gPXE to iPXE, and updating URLs to match. Also update README, LOG and COPYRIGHTS to remove obsolete information. Signed-off-by: Michael Brown <mcb30@ipxe.org>
33 lines
740 B
C
33 lines
740 B
C
#ifndef _IPXE_HMAC_H
|
|
#define _IPXE_HMAC_H
|
|
|
|
/** @file
|
|
*
|
|
* Keyed-Hashing for Message Authentication
|
|
*/
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
#include <ipxe/crypto.h>
|
|
|
|
/**
|
|
* Update HMAC
|
|
*
|
|
* @v digest Digest algorithm to use
|
|
* @v digest_ctx Digest context
|
|
* @v data Data
|
|
* @v len Length of data
|
|
*/
|
|
static inline void hmac_update ( struct digest_algorithm *digest,
|
|
void *digest_ctx, const void *data,
|
|
size_t len ) {
|
|
digest_update ( digest, digest_ctx, data, len );
|
|
}
|
|
|
|
extern void hmac_init ( struct digest_algorithm *digest, void *digest_ctx,
|
|
void *key, size_t *key_len );
|
|
extern void hmac_final ( struct digest_algorithm *digest, void *digest_ctx,
|
|
void *key, size_t *key_len, void *hmac );
|
|
|
|
#endif /* _IPXE_HMAC_H */
|