windows 7 - How to enable scrypt algorithm in OpenSSL -


i'm trying enable scrypt algorithm in openssl 1.1.0 on cygwin. used configure option enable-scrypt not work.

command build openssl:

perl configure cygwin-x86_64 --prefix="c:/openssl/x64/" no-shared -static enable-scrypt 

how activate scrypt algorithm in openssl?

enable scrypt algorithm in openssl...

it looks enabled it, appears scrypt available part of pbe gear. there no separate evp algorithm per se. is, can't ask evp_scrypt hash algorithm.

below linux (not windows) using 1.1.0 in master. used same flags used.

$ nm -d libcrypto.a 2>/dev/null | grep -i scrypt p5_scrypt.o: scrypt.o:  $ nm crypto/evp/scrypt.o                  u crypto_clear_free                  u crypto_malloc                  u err_put_error 00000000000004d0 t evp_pbe_scrypt                  u evp_sha256                  u openssl_cleanse                  u pkcs5_pbkdf2_hmac 0000000000000000 t scryptblockmix  $ cat include/openssl/evp.h | grep -i scrypt #ifndef openssl_no_scrypt int evp_pbe_scrypt(const char *pass, size_t passlen, int pkcs5_v2_scrypt_keyivgen(evp_cipher_ctx *ctx, const char *pass, 

you can verify openssl_no_scrypt not defined with:

$ cat include/openssl/opensslconf.h | grep openssl_no_scrypt $ 

based on above, 2 choices evp_pbe_scrypt , pkcs5_v2_scrypt_keyivgen. toehold, there not appear man pages:

openssl$ grep -r evp_pbe_scrypt doc/ openssl$  openssl$ grep -r pkcs5_v2_scrypt_keyivgen doc/ openssl$ 

you gotta love self-documenting code :)


here's more information p5_scrypt.o, not useful scrypt.o. ignore u. thing left looks mildly interesting t pkcs5_pbe2_set_scrypt (and friends), appears set context option.

$ nm crypto/asn1/p5_scrypt.o                  u asn1_integer_get_uint64                  u asn1_integer_it                  u asn1_integer_new                  u asn1_integer_set_int64                  u asn1_integer_set_uint64                  u asn1_octet_string_it                  u asn1_string_set                  u asn1_type_new                  u asn1_type_pack_sequence                  u asn1_type_unpack_sequence                  u asn1_item_d2i                  u asn1_item_free                  u asn1_item_i2d                  u asn1_item_new                  u err_put_error                  u evp_cipher_ctx_cipher                  u evp_cipher_ctx_free                  u evp_cipher_ctx_key_length                  u evp_cipher_ctx_new                  u evp_cipher_iv_length                  u evp_cipher_key_length                  u evp_cipher_param_to_asn1                  u evp_cipher_type                  u evp_cipherinit_ex                  u evp_pbe_scrypt                  u obj_nid2obj                  u openssl_cleanse                  u pbe2param_free                  u pbe2param_it                  u pbe2param_new 0000000000000030 t pkcs5_pbe2_set_scrypt 00000000000003f4 t pkcs5_v2_scrypt_keyivgen                  u rand_bytes 0000000000000024 t scrypt_params_free 0000000000000000 r scrypt_params_it 0000000000000018 t scrypt_params_new 0000000000000038 r scrypt_params_seq_tt                  u x509_algor_free                  u x509_algor_new 0000000000000000 t d2i_scrypt_params 000000000000000c t i2d_scrypt_params                  u memcpy 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -