mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
[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>
This commit is contained in:
committed by
Marty Connor
parent
05d3be1048
commit
59b7d00c06
@@ -12,4 +12,13 @@ struct digest_algorithm;
|
||||
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user