summaryrefslogtreecommitdiff
path: root/pbkdf2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pbkdf2.patch')
-rw-r--r--pbkdf2.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/pbkdf2.patch b/pbkdf2.patch
new file mode 100644
index 0000000..7c460c9
--- /dev/null
+++ b/pbkdf2.patch
@@ -0,0 +1,38 @@
+--- src/crypto.c~ 2018-05-10 13:45:47.000000000 -0500
++++ src/crypto.c 2021-03-25 14:48:26.977246060 -0500
+@@ -215,7 +215,7 @@
+
+ return 0;
+ }
+-
++/*
+ void pbkdf2_hmac_sha512 (
+ unsigned key_length,
+ const uint8_t *key,
+@@ -229,7 +229,7 @@
+ PBKDF2 (&sha512ctx, hmac_sha512_update, hmac_sha512_digest,
+ SHA512_DIGEST_SIZE, iterations, salt_length, salt, length, dst);
+ }
+-
++*/
+ int increment_ctr_aes_iv(uint8_t *iv, uint64_t bytes_position)
+ {
+ if (bytes_position % AES_BLOCK_SIZE != 0) {
+--- src/crypto.h~ 2018-05-10 13:45:47.000000000 -0500
++++ src/crypto.h 2021-03-25 14:48:16.384307537 -0500
+@@ -39,13 +39,13 @@
+
+ int double_ripemd160sha256_as_string(uint8_t *data, uint64_t data_size,
+ char **digest);
+-
++/*
+ void pbkdf2_hmac_sha512(unsigned key_length,
+ const uint8_t *key,
+ unsigned iterations,
+ unsigned salt_length, const uint8_t *salt,
+ unsigned length, uint8_t *dst);
+-
++*/
+ /**
+ * @brief Generate a bucket's key
+ *