class Virgil::SDK::Cryptography::Hashes::HashAlgorithm

Enumeration containing supported Algorithms

Constants

ALGORITHMS_TO_NATIVE
MD5
SHA1
SHA224
SHA256
SHA384
SHA512

Public Class Methods

convert_to_native(algorithm) click to toggle source

Raises:

UnknownAlgorithmException: if algorithm is not supported.
# File lib/virgil/sdk/cryptography/hashes/hash_algorithm.rb, line 81
def self.convert_to_native(algorithm)
  if ALGORITHMS_TO_NATIVE.has_key?(algorithm)
    return ALGORITHMS_TO_NATIVE[algorithm]
  end
  raise cls.UnknownAlgorithmException(algorithm)
end