| 1 |
# Test vectors from RFC 9106, |
| 2 |
# https://github.com/openssl/openssl/blob/01f4b44e075a796d62d3b007a80c5c04d0e77bfb/test/recipes/30-test_evp_data/evpkdf_argon2.txt |
| 3 |
# and the argon2 CLI tool. Adapted for the pyca/cryptography NIST loaders |
| 4 |
|
| 5 |
COUNT = 0 |
| 6 |
length = 32 |
| 7 |
lanes = 4 |
| 8 |
iter = 3 |
| 9 |
memcost = 32 |
| 10 |
secret = 0303030303030303 |
| 11 |
pass = 0101010101010101010101010101010101010101010101010101010101010101 |
| 12 |
salt = 02020202020202020202020202020202 |
| 13 |
ad = 040404040404040404040404 |
| 14 |
output = C814D9D1DC7F37AA13F0D77F2494BDA1C8DE6B016DD388D29952A4C4672B6CE8 |
| 15 |
|
| 16 |
COUNT = 1 |
| 17 |
length = 32 |
| 18 |
lanes = 4 |
| 19 |
iter = 3 |
| 20 |
memcost = 32 |
| 21 |
pass = 0101010101010101010101010101010101010101010101010101010101010101 |
| 22 |
salt = 02020202020202020202020202020202 |
| 23 |
output = A9A7510E6DB4D588BA3414CD0E094D480D683F97B9CCB612A544FE8EF65BA8E0 |
| 24 |
|
| 25 |
# echo -n "password" | argon2 pycasalt -i -t 1 -k 131072 -p 2 -l 64 |
| 26 |
COUNT = 2 |
| 27 |
length = 64 |
| 28 |
lanes = 2 |
| 29 |
iter = 1 |
| 30 |
memcost = 131072 |
| 31 |
salt = 7079636173616c74 |
| 32 |
pass = 70617373776f7264 |
| 33 |
output = 677c326cbd6d3697a1a1433750418795c20414048ff473fa53c0f594b8998f8b58fe36f0eb7b88ee8d9ff5246b9457f02d96dd38c8e062063faf795f877977c5 |
| 34 |
|
| 35 |
# echo -n "password" | argon2 pycasalt -i -t 4 -k 50 -p 4 -l 8 |
| 36 |
COUNT = 3 |
| 37 |
length = 8 |
| 38 |
lanes = 4 |
| 39 |
iter = 4 |
| 40 |
memcost = 50 |
| 41 |
salt = 7079636173616c74 |
| 42 |
pass = 70617373776f7264 |
| 43 |
output = 87a30dd30bb00555 |
| 44 |
|
| 45 |
# echo -n "password" | argon2 pycasalt -i -t 1 -k 8 -p 1 -l 4 |
| 46 |
COUNT = 4 |
| 47 |
length = 4 |
| 48 |
lanes = 1 |
| 49 |
iter = 1 |
| 50 |
memcost = 8 |
| 51 |
salt = 7079636173616c74 |
| 52 |
pass = 70617373776f7264 |
| 53 |
output = 040180d6 |