]>
Commit | Line | Data |
---|---|---|
5ccada09 | 1 | # |
eec0ad10 | 2 | # Copyright 2001-2020 The OpenSSL Project Authors. All Rights Reserved. |
5ccada09 SL |
3 | # |
4 | # Licensed under the Apache License 2.0 (the "License"). You may not use | |
5 | # this file except in compliance with the License. You can obtain a copy | |
6 | # in the file LICENSE in the source distribution or at | |
7 | # https://www.openssl.org/source/license.html | |
8 | ||
9 | # Tests start with one of these keywords | |
10 | # Cipher Decrypt Derive Digest Encoding KDF MAC PBE | |
11 | # PrivPubKeyPair Sign Verify VerifyRecover | |
12 | # and continue until a blank line. Lines starting with a pound sign are ignored. | |
13 | ||
14 | Title = Scrypt tests (from draft-josefsson-id-scrypt-kdf-03 and others) | |
15 | ||
16 | KDF = id-scrypt | |
17 | Ctrl.pass = pass: | |
18 | Ctrl.salt = salt: | |
19 | Ctrl.N = n:16 | |
20 | Ctrl.r = r:1 | |
21 | Ctrl.p = p:1 | |
22 | Output = 77d6576238657b203b19ca42c18a0497f16b4844e3074ae8dfdffa3fede21442fcd0069ded0948f8326a753a0fc81f17e8d3e0fb2e0d3628cf35e20c38d18906 | |
23 | ||
24 | KDF = id-scrypt | |
25 | Ctrl.pass = pass:password | |
26 | Ctrl.salt = salt:NaCl | |
27 | Ctrl.N = n:1024 | |
28 | Ctrl.r = r:8 | |
29 | Ctrl.p = p:16 | |
30 | Output = fdbabe1c9d3472007856e7190d01e9fe7c6ad7cbc8237830e77376634b3731622eaf30d92e22a3886ff109279d9830dac727afb94a83ee6d8360cbdfa2cc0640 | |
31 | ||
32 | KDF = id-scrypt | |
33 | Ctrl.hexpass = hexpass:70617373776f7264 | |
34 | Ctrl.salt = salt:NaCl | |
35 | Ctrl.N = n:1024 | |
36 | Ctrl.r = r:8 | |
37 | Ctrl.p = p:16 | |
38 | Output = fdbabe1c9d3472007856e7190d01e9fe7c6ad7cbc8237830e77376634b3731622eaf30d92e22a3886ff109279d9830dac727afb94a83ee6d8360cbdfa2cc0640 | |
39 | ||
40 | KDF = id-scrypt | |
41 | Ctrl.pass = pass:password | |
42 | Ctrl.hexsalt = hexsalt:4e61436c | |
43 | Ctrl.N = n:1024 | |
44 | Ctrl.r = r:8 | |
45 | Ctrl.p = p:16 | |
46 | Output = fdbabe1c9d3472007856e7190d01e9fe7c6ad7cbc8237830e77376634b3731622eaf30d92e22a3886ff109279d9830dac727afb94a83ee6d8360cbdfa2cc0640 | |
47 | ||
48 | KDF = id-scrypt | |
49 | Ctrl.pass = pass:pleaseletmein | |
50 | Ctrl.salt = salt:SodiumChloride | |
51 | Ctrl.N = n:16384 | |
52 | Ctrl.r = r:8 | |
53 | Ctrl.p = p:1 | |
54 | Output = 7023bdcb3afd7348461c06cd81fd38ebfda8fbba904f8e3ea9b543f6545da1f2d5432955613f0fcf62d49705242a9af9e61e85dc0d651e40dfcf017b45575887 | |
55 | ||
56 | # Out of memory | |
57 | KDF = id-scrypt | |
58 | Ctrl.pass = pass:pleaseletmein | |
59 | Ctrl.salt = salt:SodiumChloride | |
60 | Ctrl.N = n:1048576 | |
61 | Ctrl.r = r:8 | |
62 | Ctrl.p = p:1 | |
63 | Result = INTERNAL_ERROR |