diff options
author | Jack Lloyd <[email protected]> | 2018-05-15 22:24:59 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-05-16 10:33:52 -0400 |
commit | 556aac9cd7362d959ada085222f1e0e940f94cdd (patch) | |
tree | 17bd7fef0100fab77195d9e3423dc3f5400a2d2c /src/tests/data/scrypt.vec | |
parent | 1edd844d4b59867e2dbbf135bc754dc220f375e3 (diff) |
Add Scrypt key dervation function
Diffstat (limited to 'src/tests/data/scrypt.vec')
-rw-r--r-- | src/tests/data/scrypt.vec | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/src/tests/data/scrypt.vec b/src/tests/data/scrypt.vec new file mode 100644 index 000000000..e63e7d6fa --- /dev/null +++ b/src/tests/data/scrypt.vec @@ -0,0 +1,112 @@ + +# From RFC 7914 + +Passphrase = +Salt = +N = 16 +R = 1 +P = 1 +Output = 77D6576238657B203B19CA42C18A0497F16B4844E3074AE8DFDFFA3FEDE21442FCD0069DED0948F8326A753A0FC81F17E8D3E0FB2E0D3628CF35E20C38D18906 + +Passphrase = password +Salt = 4E61436C +N = 1024 +R = 8 +P = 16 +Output = FDBABE1C9D3472007856E7190D01E9FE7C6AD7CBC8237830E77376634B3731622EAF30D92E22A3886FF109279D9830DAC727AFB94A83EE6D8360CBDFA2CC0640 + +Passphrase = pleaseletmein +Salt = 536F6469756D43686C6F72696465 +N = 16384 +R = 8 +P = 1 +Output = 7023BDCB3AFD7348461C06CD81FD38EBFDA8FBBA904F8E3EA9B543F6545DA1F2D5432955613F0FCF62D49705242A9AF9E61E85DC0D651E40DFCF017B45575887 + +# Uses 1G memory +Passphrase = pleaseletmein +Salt = 536F6469756D43686C6F72696465 +N = 1048576 +R = 8 +P = 1 +Output = 2101CB9B6A511AAEADDBBE09CF70F881EC568D574A2FFD4DABE5EE9820ADAA478E56FD8F4BA5D09FFA1C6D927C40F4C337304049E8A952FBCBF45C6FA77A41A4 + +# From PKCS#8 test +Passphrase = Rabbit +Salt = 4D6F757365 +N = 1048576 +R = 8 +P = 1 +Output = E277EA2CACB23EDAFC039D229B79DC13ECEDB601D99B182A9FEDBA1E2BFB4F58 + +# Generated by OpenSSL 1.1.0 via Python hashlib + +Passphrase = password +Salt = ce3b79848f2a254df1d60e1a3146165a +N = 8192 +R = 5 +P = 1 +Output = a19e1c5ce6e0da022c64a7205da125dc + +Passphrase = password +Salt = ce3b79848f2a254df1d60e1a3146165a +N = 8192 +R = 6 +P = 1 +Output = c9060cb775114c0688df86e9990c62ab + +Passphrase = password +Salt = ce3b79848f2a254df1d60e1a3146165a +N = 8192 +R = 7 +P = 1 +Output = 424e439dafcc0fc438469241e9d6bdf8 + +Passphrase = password +Salt = ce3b79848f2a254df1d60e1a3146165a +N = 8192 +R = 8 +P = 1 +Output = 18f3116479374acd05755a1bf43a3af2 + +Passphrase = password +Salt = ce3b79848f2a254df1d60e1a3146165a +N = 4096 +R = 16 +P = 1 +Output = 485d55c1267e1afa60349fe28c4aa2d9 + +Passphrase = password +Salt = ce3b79848f2a254df1d60e1a3146165a +N = 4096 +R = 32 +P = 1 +Output = a43d75bb3b899852c8297fe2cd3b9681 + +Passphrase = password +Salt = ce3b79848f2a254df1d60e1a3146165a +N = 2 +R = 64 +P = 64 +Output = a1c68ee1a41bc4e8dcfdc3fa93700426 + +Passphrase = password +Salt = ce3b79848f2a254df1d60e1a3146165a +N = 2 +R = 64 +P = 128 +Output = b58b8ec24738af168b4e24de079102f1 + +Passphrase = password +Salt = ce3b79848f2a254df1d60e1a3146165a +N = 2 +R = 63 +P = 128 +Output = 61de26be0f6609462bf66d88dece2d3c + +Passphrase = password +Salt = ce3b79848f2a254df1d60e1a3146165a +N = 4 +R = 19 +P = 17 +Output = b21fc99ae1dd4067c2d2b906af62518e + |