diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-06-27 09:35:22 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-06-27 09:35:26 +0000 |
commit | 7919826b58cf42e498e21c7dab18485fabad7f56 (patch) | |
tree | 7103ed100a391230998acbcd36c9512618b21a7e /testing/john/truecrypt_fmt_plug.patch | |
parent | 876b1d5245005235d709e99e4bb18d54f8f31f44 (diff) | |
download | aports-7919826b58cf42e498e21c7dab18485fabad7f56.tar.gz aports-7919826b58cf42e498e21c7dab18485fabad7f56.tar.bz2 aports-7919826b58cf42e498e21c7dab18485fabad7f56.tar.xz |
testing/john: new aport
Diffstat (limited to 'testing/john/truecrypt_fmt_plug.patch')
-rw-r--r-- | testing/john/truecrypt_fmt_plug.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/john/truecrypt_fmt_plug.patch b/testing/john/truecrypt_fmt_plug.patch new file mode 100644 index 0000000000..20da51ba7e --- /dev/null +++ b/testing/john/truecrypt_fmt_plug.patch @@ -0,0 +1,14 @@ +--- a/src/truecrypt_fmt_plug.c.orig 2014-12-18 07:59:02.000000000 +0000 ++++ b/src/truecrypt_fmt_plug.c 2014-12-18 20:00:47.321449585 +0000 +@@ -310,8 +310,8 @@ static int crypt_all(int *pcount, struct + pbkdf2_sha512_sse((const unsigned char **)pin, lens, psalt->salt, 64, psalt->num_iterations, &(x.poutc), sizeof(key), 0); + } + #else +- if (is_sha512) +- pbkdf2_sha512((const unsigned char*)key_buffer[i], strlen(key_buffer[i]), psalt->salt, 64, num_iterations, key, sizeof(key), 0); ++ if (psalt->hash_type == IS_SHA512) ++ pbkdf2_sha512((const unsigned char*)key_buffer[i], strlen((char*)key_buffer[i]), psalt->salt, 64, psalt->num_iterations, key, sizeof(key), 0); + #endif + else if (psalt->hash_type == IS_RIPEMD160) + pbkdf2_ripemd160(key_buffer[i], strlen((char*)(key_buffer[i])), psalt->salt, 64, psalt->num_iterations, key, sizeof(key), 0); + |