2
0
mirror of https://github.com/xcat2/xNBA.git synced 2026-05-14 18:34:11 +00:00
Files
xNBA/src/include/gpxe/sha1.h
T
Joshua Oreman 59b7d00c06 [digest] Add HMAC-SHA1 based pseudorandom function and PBKDF2
Both of these routines are used by 802.11 WPA, but they are generic
and could be needed by other protocols as well.

Signed-off-by: Marty Connor <mdc@etherboot.org>
2010-01-05 09:01:34 -05:00

25 lines
629 B
C

#ifndef _GPXE_SHA1_H
#define _GPXE_SHA1_H
FILE_LICENCE ( GPL2_OR_LATER );
#include "crypto/axtls/crypto.h"
struct digest_algorithm;
#define SHA1_CTX_SIZE sizeof ( SHA1_CTX )
#define SHA1_DIGEST_SIZE SHA1_SIZE
extern struct digest_algorithm sha1_algorithm;
/* SHA1-wrapping functions defined in sha1extra.c: */
void prf_sha1 ( const void *key, size_t key_len, const char *label,
const void *data, size_t data_len, void *prf, size_t prf_len );
void pbkdf2_sha1 ( const void *passphrase, size_t pass_len,
const void *salt, size_t salt_len,
int iterations, void *key, size_t key_len );
#endif /* _GPXE_SHA1_H */