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