RT3998: Allow scrypt to be disabled
This does 64-bit division and multiplication, and on 32-bit platforms pulls in libgcc symbols (and MSVC does similar) which may not be available. Mostly done by David Woodhouse. Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
This commit is contained in:
@@ -4563,13 +4563,13 @@ COMP_get_name 4921 EXIST::FUNCTION:
|
||||
COMP_get_type 4922 EXIST::FUNCTION:
|
||||
ASN1_INTEGER_get_int64 4923 EXIST::FUNCTION:
|
||||
ASN1_ENUMERATED_set_int64 4924 EXIST::FUNCTION:
|
||||
EVP_PBE_scrypt 4925 EXIST::FUNCTION:
|
||||
EVP_PBE_scrypt 4925 EXIST::FUNCTION:SCRYPT
|
||||
ASN1_INTEGER_set_int64 4926 EXIST::FUNCTION:
|
||||
ASN1_ENUMERATED_get_int64 4927 EXIST::FUNCTION:
|
||||
PKCS5_v2_scrypt_keyivgen 4928 EXIST::FUNCTION:
|
||||
PKCS5_v2_scrypt_keyivgen 4928 EXIST::FUNCTION:SCRYPT
|
||||
ASN1_INTEGER_get_uint64 4929 EXIST::FUNCTION:
|
||||
ASN1_INTEGER_set_uint64 4930 EXIST::FUNCTION:
|
||||
PKCS5_pbe2_set_scrypt 4931 EXIST::FUNCTION:
|
||||
PKCS5_pbe2_set_scrypt 4931 EXIST::FUNCTION:SCRYPT
|
||||
PKCS8_set0_pbe 4932 EXIST::FUNCTION:
|
||||
DH_bits 4933 EXIST::FUNCTION:DH
|
||||
RSA_bits 4934 EXIST::FUNCTION:RSA
|
||||
|
||||
@@ -69,6 +69,7 @@ my @known_algorithms = ( "RC2", "RC4", "RC5", "IDEA", "DES", "BF",
|
||||
"SHA256", "SHA512", "RMD160",
|
||||
"MDC2", "WHIRLPOOL", "RSA", "DSA", "DH", "EC", "ECDH", "ECDSA", "EC2M",
|
||||
"HMAC", "AES", "CAMELLIA", "SEED", "GOST",
|
||||
"SCRYPT",
|
||||
# EC_NISTP_64_GCC_128
|
||||
"EC_NISTP_64_GCC_128",
|
||||
# Envelope "algorithms"
|
||||
@@ -123,7 +124,7 @@ close(IN);
|
||||
my $no_rc2; my $no_rc4; my $no_rc5; my $no_idea; my $no_des; my $no_bf;
|
||||
my $no_cast; my $no_whirlpool; my $no_camellia; my $no_seed;
|
||||
my $no_md2; my $no_md4; my $no_md5; my $no_sha; my $no_ripemd; my $no_mdc2;
|
||||
my $no_rsa; my $no_dsa; my $no_dh; my $no_aes;
|
||||
my $no_rsa; my $no_dsa; my $no_dh; my $no_aes; my $no_scrypt;
|
||||
my $no_ec; my $no_ecdsa; my $no_ecdh; my $no_engine; my $no_hw;
|
||||
my $no_fp_api; my $no_static_engine=1; my $no_gmp; my $no_deprecated;
|
||||
my $no_rfc3779; my $no_psk; my $no_cms; my $no_capieng;
|
||||
@@ -203,6 +204,7 @@ foreach (@ARGV, split(/ /, $options))
|
||||
elsif (/^no-aes$/) { $no_aes=1; }
|
||||
elsif (/^no-camellia$/) { $no_camellia=1; }
|
||||
elsif (/^no-seed$/) { $no_seed=1; }
|
||||
elsif (/^no-scrypt$/) { $no_scrypt=1; }
|
||||
elsif (/^no-evp$/) { $no_evp=1; }
|
||||
elsif (/^no-lhash$/) { $no_lhash=1; }
|
||||
elsif (/^no-stack$/) { $no_stack=1; }
|
||||
@@ -1187,6 +1189,7 @@ sub is_valid
|
||||
if ($keyword eq "AES" && $no_aes) { return 0; }
|
||||
if ($keyword eq "CAMELLIA" && $no_camellia) { return 0; }
|
||||
if ($keyword eq "SEED" && $no_seed) { return 0; }
|
||||
if ($keyword eq "SCRYPT" && $no_scrypt) { return 0; }
|
||||
if ($keyword eq "EVP" && $no_evp) { return 0; }
|
||||
if ($keyword eq "LHASH" && $no_lhash) { return 0; }
|
||||
if ($keyword eq "STACK" && $no_stack) { return 0; }
|
||||
|
||||
Reference in New Issue
Block a user