evppbe_scrypt.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright 2001-2020 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 = scrypt tests (from draft-josefsson-scrypt-kdf-03 and others) Using PBE
  13. PBE = scrypt
  14. Password = ""
  15. Salt = ""
  16. N = 16
  17. r = 1
  18. p = 1
  19. Key = 77d6576238657b203b19ca42c18a0497f16b4844e3074ae8dfdffa3fede21442fcd0069ded0948f8326a753a0fc81f17e8d3e0fb2e0d3628cf35e20c38d18906
  20. PBE = scrypt
  21. Password = "password"
  22. Salt = "NaCl"
  23. N = 1024
  24. r = 8
  25. p = 16
  26. Key = fdbabe1c9d3472007856e7190d01e9fe7c6ad7cbc8237830e77376634b3731622eaf30d92e22a3886ff109279d9830dac727afb94a83ee6d8360cbdfa2cc0640
  27. PBE = scrypt
  28. Password = "pleaseletmein"
  29. Salt = "SodiumChloride"
  30. N = 16384
  31. r = 8
  32. p = 1
  33. Key = 7023bdcb3afd7348461c06cd81fd38ebfda8fbba904f8e3ea9b543f6545da1f2d5432955613f0fcf62d49705242a9af9e61e85dc0d651e40dfcf017b45575887
  34. # NB: this test requires more than 1GB of memory to run so it will hit the
  35. # scrypt memory limit and return an error. To run this test without error
  36. # uncomment out the "maxmem" line and comment out the "Result"
  37. # line
  38. PBE = scrypt
  39. Password = "pleaseletmein"
  40. Salt = "SodiumChloride"
  41. N = 1048576
  42. r = 8
  43. p = 1
  44. Key = 2101cb9b6a511aaeaddbbe09cf70f881ec568d574a2ffd4dabe5ee9820adaa478e56fd8f4ba5d09ffa1c6d927c40f4c337304049e8a952fbcbf45c6fa77a41a4
  45. Result = SCRYPT_ERROR
  46. #maxmem = 10000000000