summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorJoshua Oreman2009-06-26 09:03:12 +0200
committerMarty Connor2010-01-05 15:01:34 +0100
commit59b7d00c068249aba617384dcb2df2441fd878c2 (patch)
treebe700dfff1db158ed639316f0dd28ccac305e14b /src/include
parent[cipher] Add the ARC4 stream cipher (diff)
downloadipxe-59b7d00c068249aba617384dcb2df2441fd878c2.tar.gz
ipxe-59b7d00c068249aba617384dcb2df2441fd878c2.tar.xz
ipxe-59b7d00c068249aba617384dcb2df2441fd878c2.zip
[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>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/sha1.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/gpxe/sha1.h b/src/include/gpxe/sha1.h
index 8109a8a05..c203d9959 100644
--- a/src/include/gpxe/sha1.h
+++ b/src/include/gpxe/sha1.h
@@ -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 */