evppkey_kdf_scrypt.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #
  2. # Copyright 2001-2021 The OpenSSL Project Authors. All Rights Reserved.
  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. # Tests start with one of these keywords
  9. # Cipher Decrypt Derive Digest Encoding KDF MAC PBE
  10. # PrivPubKeyPair Sign Verify VerifyRecover
  11. # and continue until a blank line. Lines starting with a pound sign are ignored.
  12. Title = id-scrypt tests (from draft-josefsson-id-scrypt-kdf-03 and others)
  13. PKEYKDF = scrypt
  14. Ctrl.pass = pass:
  15. Ctrl.salt = salt:
  16. Ctrl.N = N:16
  17. Ctrl.r = r:1
  18. Ctrl.p = p:1
  19. Output = 77d6576238657b203b19ca42c18a0497f16b4844e3074ae8dfdffa3fede21442fcd0069ded0948f8326a753a0fc81f17e8d3e0fb2e0d3628cf35e20c38d18906
  20. PKEYKDF = scrypt
  21. Ctrl.pass = pass:password
  22. Ctrl.salt = salt:NaCl
  23. Ctrl.N = N:1024
  24. Ctrl.r = r:8
  25. Ctrl.p = p:16
  26. Output = fdbabe1c9d3472007856e7190d01e9fe7c6ad7cbc8237830e77376634b3731622eaf30d92e22a3886ff109279d9830dac727afb94a83ee6d8360cbdfa2cc0640
  27. PKEYKDF = scrypt
  28. Ctrl.hexpass = hexpass:70617373776f7264
  29. Ctrl.salt = salt:NaCl
  30. Ctrl.N = N:1024
  31. Ctrl.r = r:8
  32. Ctrl.p = p:16
  33. Output = fdbabe1c9d3472007856e7190d01e9fe7c6ad7cbc8237830e77376634b3731622eaf30d92e22a3886ff109279d9830dac727afb94a83ee6d8360cbdfa2cc0640
  34. PKEYKDF = scrypt
  35. Ctrl.pass = pass:password
  36. Ctrl.hexsalt = hexsalt:4e61436c
  37. Ctrl.N = N:1024
  38. Ctrl.r = r:8
  39. Ctrl.p = p:16
  40. Output = fdbabe1c9d3472007856e7190d01e9fe7c6ad7cbc8237830e77376634b3731622eaf30d92e22a3886ff109279d9830dac727afb94a83ee6d8360cbdfa2cc0640
  41. PKEYKDF = scrypt
  42. Ctrl.pass = pass:pleaseletmein
  43. Ctrl.salt = salt:SodiumChloride
  44. Ctrl.N = N:16384
  45. Ctrl.r = r:8
  46. Ctrl.p = p:1
  47. Output = 7023bdcb3afd7348461c06cd81fd38ebfda8fbba904f8e3ea9b543f6545da1f2d5432955613f0fcf62d49705242a9af9e61e85dc0d651e40dfcf017b45575887
  48. # Out of memory
  49. PKEYKDF = scrypt
  50. Ctrl.pass = pass:pleaseletmein
  51. Ctrl.salt = salt:SodiumChloride
  52. Ctrl.N = n:2097152
  53. Ctrl.r = r:8
  54. Ctrl.p = p:1
  55. Result = KDF_DERIVE_ERROR