1*e0c4386eSCy Schubert# 2*e0c4386eSCy Schubert# Copyright 2001-2020 The OpenSSL Project Authors. All Rights Reserved. 3*e0c4386eSCy Schubert# 4*e0c4386eSCy Schubert# Licensed under the Apache License 2.0 (the "License"). You may not use 5*e0c4386eSCy Schubert# this file except in compliance with the License. You can obtain a copy 6*e0c4386eSCy Schubert# in the file LICENSE in the source distribution or at 7*e0c4386eSCy Schubert# https://www.openssl.org/source/license.html 8*e0c4386eSCy Schubert 9*e0c4386eSCy Schubert# Tests start with one of these keywords 10*e0c4386eSCy Schubert# Cipher Decrypt Derive Digest Encoding KDF MAC PBE 11*e0c4386eSCy Schubert# PrivPubKeyPair Sign Verify VerifyRecover 12*e0c4386eSCy Schubert# and continue until a blank line. Lines starting with a pound sign are ignored. 13*e0c4386eSCy Schubert 14*e0c4386eSCy SchubertTitle = scrypt tests (from draft-josefsson-scrypt-kdf-03 and others) Using PBE 15*e0c4386eSCy Schubert 16*e0c4386eSCy SchubertPBE = scrypt 17*e0c4386eSCy SchubertPassword = "" 18*e0c4386eSCy SchubertSalt = "" 19*e0c4386eSCy SchubertN = 16 20*e0c4386eSCy Schubertr = 1 21*e0c4386eSCy Schubertp = 1 22*e0c4386eSCy SchubertKey = 77d6576238657b203b19ca42c18a0497f16b4844e3074ae8dfdffa3fede21442fcd0069ded0948f8326a753a0fc81f17e8d3e0fb2e0d3628cf35e20c38d18906 23*e0c4386eSCy Schubert 24*e0c4386eSCy SchubertPBE = scrypt 25*e0c4386eSCy SchubertPassword = "password" 26*e0c4386eSCy SchubertSalt = "NaCl" 27*e0c4386eSCy SchubertN = 1024 28*e0c4386eSCy Schubertr = 8 29*e0c4386eSCy Schubertp = 16 30*e0c4386eSCy SchubertKey = fdbabe1c9d3472007856e7190d01e9fe7c6ad7cbc8237830e77376634b3731622eaf30d92e22a3886ff109279d9830dac727afb94a83ee6d8360cbdfa2cc0640 31*e0c4386eSCy Schubert 32*e0c4386eSCy SchubertPBE = scrypt 33*e0c4386eSCy SchubertPassword = "pleaseletmein" 34*e0c4386eSCy SchubertSalt = "SodiumChloride" 35*e0c4386eSCy SchubertN = 16384 36*e0c4386eSCy Schubertr = 8 37*e0c4386eSCy Schubertp = 1 38*e0c4386eSCy SchubertKey = 7023bdcb3afd7348461c06cd81fd38ebfda8fbba904f8e3ea9b543f6545da1f2d5432955613f0fcf62d49705242a9af9e61e85dc0d651e40dfcf017b45575887 39*e0c4386eSCy Schubert 40*e0c4386eSCy Schubert# NB: this test requires more than 1GB of memory to run so it will hit the 41*e0c4386eSCy Schubert# scrypt memory limit and return an error. To run this test without error 42*e0c4386eSCy Schubert# uncomment out the "maxmem" line and comment out the "Result" 43*e0c4386eSCy Schubert# line 44*e0c4386eSCy SchubertPBE = scrypt 45*e0c4386eSCy SchubertPassword = "pleaseletmein" 46*e0c4386eSCy SchubertSalt = "SodiumChloride" 47*e0c4386eSCy SchubertN = 1048576 48*e0c4386eSCy Schubertr = 8 49*e0c4386eSCy Schubertp = 1 50*e0c4386eSCy SchubertKey = 2101cb9b6a511aaeaddbbe09cf70f881ec568d574a2ffd4dabe5ee9820adaa478e56fd8f4ba5d09ffa1c6d927c40f4c337304049e8a952fbcbf45c6fa77a41a4 51*e0c4386eSCy SchubertResult = SCRYPT_ERROR 52*e0c4386eSCy Schubert#maxmem = 10000000000 53