aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_kdf.c
diff options
context:
space:
mode:
authorBart de Water <bartdewater@gmail.com>2020-04-19 11:14:36 -0400
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-04-21 16:33:09 +1200
commitb28fb2f05c1e90130b2d4fdcbdae5234b66bbb05 (patch)
tree80433a4fb91b4c81ba2a38e2cb96de8b04275bf2 /ext/openssl/ossl_kdf.c
parent2ca54fe46e87f8a14ff9b7c41e21f0c2e013e55e (diff)
downloadruby-openssl-b28fb2f05c1e90130b2d4fdcbdae5234b66bbb05.tar.gz
Look up digest by name instead of constant
Diffstat (limited to 'ext/openssl/ossl_kdf.c')
-rw-r--r--ext/openssl/ossl_kdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_kdf.c b/ext/openssl/ossl_kdf.c
index 3d0e66b5..486e7894 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,