lib/yoti/ssl.rb in yoti-1.6.4 vs lib/yoti/ssl.rb in yoti-1.7.0

- old
+ new

@@ -30,11 +30,11 @@ raise SslError, "Could not decrypt token. #{e}" end end # Extracts the public key from pem key, converts it to a DER base 64 encoded value - # @return [String] base 64 encoded anthentication key + # @return [String] base 64 encoded authentication key def auth_key_from_pem public_key = private_key.public_key Base64.strict_encode64(public_key.to_der) end @@ -46,10 +46,10 @@ Base64.strict_encode64(private_key.sign(digest, message)) end # Uses the decrypted receipt key and the current user's iv to decode the text # @param key [String] base 64 decoded key - # @param iv [String] base 64 decoded iv + # @param user_iv [String] base 64 decoded iv # @param text [String] base 64 decoded cyphered text # @return [String] base 64 decoded deciphered text def decipher(key, user_iv, text) ssl_decipher = OpenSSL::Cipher.new('AES-256-CBC') ssl_decipher.decrypt