VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Pkcs5.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-10-14 17:09:18 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:23:50 +0100
commitf38cf0b6943da24c802424f53588b54aada48fd8 (patch)
tree6cf5ff0e6d51e6a022b6be29780f215195a403f6 /src/Common/Pkcs5.h
parentbd7d151abf2c51e24a0dc60f7400c0388904c9f1 (diff)
downloadVeraCrypt-f38cf0b6943da24c802424f53588b54aada48fd8.tar.gz
VeraCrypt-f38cf0b6943da24c802424f53588b54aada48fd8.zip
Add support for SHA-256 in key derivation for bootloader encryption. Create separate bootloader images for SHA-256 and RIPEMD-160. Set SHA-256 as the default PRF for boot encryption and SHA-512 as default PRF for all other cases. Depricate RIPEMD-160.
Diffstat (limited to 'src/Common/Pkcs5.h')
-rw-r--r--src/Common/Pkcs5.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Common/Pkcs5.h b/src/Common/Pkcs5.h
index 148a3e2d..aff36cc4 100644
--- a/src/Common/Pkcs5.h
+++ b/src/Common/Pkcs5.h
@@ -18,6 +18,9 @@
extern "C"
{
#endif
+void hmac_sha256 (char *k, int lk, char *d, int ld, char *out);
+void derive_u_sha256 (char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *u, int b);
+void derive_key_sha256 (char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *dk, int dklen);
void hmac_sha512 (char *k, int lk, char *d, int ld, char *out, int t);
void derive_u_sha512 (char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *u, int b);