aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/include/gpxe/sha1.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/include/gpxe/sha1.h')
-rw-r--r--gpxe/src/include/gpxe/sha1.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gpxe/src/include/gpxe/sha1.h b/gpxe/src/include/gpxe/sha1.h
index 66370d42..c203d995 100644
--- a/gpxe/src/include/gpxe/sha1.h
+++ b/gpxe/src/include/gpxe/sha1.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_SHA1_H
#define _GPXE_SHA1_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include "crypto/axtls/crypto.h"
struct digest_algorithm;
@@ -10,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 */