This commit is contained in:
Benoit Daloze 2023-10-30 16:44:54 +01:00
parent b09618e566
commit 7d8cfa0a40

View File

@ -1,7 +1,8 @@
require_relative '../../../spec_helper'
require 'openssl'
describe "OpenSSL::KDF.scrypt" do
guard -> { OpenSSL::OPENSSL_VERSION_NUMBER >= 0x10100000 } do
describe "OpenSSL::KDF.scrypt" do
before :each do
@defaults = {
salt: "\x00".b * 16,
@ -204,4 +205,5 @@ describe "OpenSSL::KDF.scrypt" do
OpenSSL::KDF.scrypt("secret", **@defaults, length: -1)
}.should raise_error(ArgumentError, "negative string size (or size too big)")
end
end
end