]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
scrypt: increase memory usage beyond limit
authorPauli <pauli@openssl.org>
Tue, 1 Feb 2022 01:37:25 +0000 (12:37 +1100)
committerPauli <pauli@openssl.org>
Wed, 9 Feb 2022 09:03:48 +0000 (20:03 +1100)
This brings these tests in line with 3.0 and master and makes them
fail correctly.

Fixes #17612

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17619)

test/recipes/30-test_evp_data/evpkdf.txt

index 34c7e6ae65a6ff24a50cb043a23ded7f1e096955..2824cb2f1665eb5f163e46b4045c2af13efc6e27 100644 (file)
@@ -294,12 +294,12 @@ Ctrl.r = r:8
 Ctrl.p = p:1
 Output = 7023bdcb3afd7348461c06cd81fd38ebfda8fbba904f8e3ea9b543f6545da1f2d5432955613f0fcf62d49705242a9af9e61e85dc0d651e40dfcf017b45575887
 
-# Out of memory
+# Out of memory - request > 2 GB of memory
 KDF = scrypt
 Ctrl.pass = pass:pleaseletmein
 Ctrl.salt = salt:SodiumChloride
-Ctrl.N = N:1048576
+Ctrl.N = N:2097152
 Ctrl.r = r:8
 Ctrl.p = p:1
-Result = KDF_MISMATCH
+Result = KDF_DERIVE_ERROR