123456789_123456789_123456789_123456789_123456789_

Module: OpenSSL::PKCS5

Relationships & Source Files
Defined in: ext/openssl/lib/openssl/pkcs5.rb

Class Method Summary

Class Method Details

.pbkdf2_hmac(pass, salt, iter, keylen, digest) (mod_func)

pbkdf2_hmac has been renamed to KDF.pbkdf2_hmac. This method is provided for backwards compatibility.

[ GitHub ]

  
# File 'ext/openssl/lib/openssl/pkcs5.rb', line 13

def pbkdf2_hmac(pass, salt, iter, keylen, digest)
  OpenSSL::KDF.pbkdf2_hmac(pass, salt: salt, iterations: iter,
                           length: keylen, hash: digest)
end

.pbkdf2_hmac_sha1(pass, salt, iter, keylen) (mod_func)

[ GitHub ]

  
# File 'ext/openssl/lib/openssl/pkcs5.rb', line 18

def pbkdf2_hmac_sha1(pass, salt, iter, keylen)
  pbkdf2_hmac(pass, salt, iter, keylen, "sha1")
end