In Files

  • openssl/lib/openssl/pkcs5.rb

Class/Module Index [+]

Quicksearch

OpenSSL::PKCS5

Public Instance Methods

pbkdf2_hmac(pass, salt, iter, keylen, digest) click to toggle source

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

 
               # File openssl/lib/openssl/pkcs5.rb, line 12
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) click to toggle source
 
               # File openssl/lib/openssl/pkcs5.rb, line 17
def pbkdf2_hmac_sha1(pass, salt, iter, keylen)
  pbkdf2_hmac(pass, salt, iter, keylen, "sha1")
end