class Virgil::SDK::Cryptography::Keys::KeyPairType

Enumeration containing supported KeyPairTypes

Constants

Default
EC_BP256R1
EC_BP384R1
EC_BP512R1
EC_CURVE25519
EC_SECP256K1
EC_SECP256R1
EC_SECP384R1
EC_SECP521R1
FAST_EC_ED25519
FAST_EC_X25519
RSA_2048
RSA_3072
RSA_4096
RSA_8192
TYPES_TO_NATIVE

Private Class Methods

convert_to_native(key_pair_type) click to toggle source

Converts type enum value to native value

Args:

key_pair_type: type id for conversion.

Returns:

Native library key pair type id.

Raises:

UnknownTypeException: if type is not supported.
# File lib/virgil/sdk/cryptography/keys/key_pair_type.rb, line 98
def self.convert_to_native(key_pair_type)
  if TYPES_TO_NATIVE.has_key?(key_pair_type)
    return TYPES_TO_NATIVE[key_pair_type]
  end
  raise UnknownTypeException.new(key_pair_type)
end