diff options
author | Bart de Water <[email protected]> | 2020-04-19 11:14:36 -0400 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2020-05-13 15:47:51 +0900 |
commit | 0b2c70eaa1e8e41fcb6332b22b084dabb81e637c (patch) | |
tree | f12d0c69a0b21c56b0df53ecd4615e2d6418d1f0 /ext/openssl/ossl_kdf.c | |
parent | 3f8665fe0ed5331aa723ddecbf6ad3728931c08d (diff) |
[ruby/openssl] Look up digest by name instead of constant
https://github.com/ruby/openssl/commit/b28fb2f05c
Diffstat (limited to 'ext/openssl/ossl_kdf.c')
-rw-r--r-- | ext/openssl/ossl_kdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_kdf.c b/ext/openssl/ossl_kdf.c index 3d0e66b5f5..486e789458 100644 --- a/ext/openssl/ossl_kdf.c +++ b/ext/openssl/ossl_kdf.c @@ -272,7 +272,7 @@ Init_ossl_kdf(void) * # store this with the generated value * salt = OpenSSL::Random.random_bytes(16) * iter = 20_000 - * hash = OpenSSL::Digest::SHA256.new + * hash = OpenSSL::Digest.new('SHA256') * len = hash.digest_length * # the final value to be stored * value = OpenSSL::KDF.pbkdf2_hmac(pass, salt: salt, iterations: iter, |