virgil_crypto.keys.key_pair_type module

class virgil_crypto.keys.key_pair_type.KeyPairType[source]

Bases: object

Enumeration containing supported KeyPairTypes

CURVE25519 = <virgil_crypto.keys.key_pair_type.KeyPairType.KeyType object>
ED25519 = <virgil_crypto.keys.key_pair_type.KeyPairType.KeyType object>
class KeyType(alg_id, rsa_bitlen=None)[source]

Bases: object

property alg_id
property rsa_bitlen
RSA_2048 = <virgil_crypto.keys.key_pair_type.KeyPairType.KeyType object>
RSA_4096 = <virgil_crypto.keys.key_pair_type.KeyPairType.KeyType object>
RSA_8192 = <virgil_crypto.keys.key_pair_type.KeyPairType.KeyType object>
SECP256R1 = <virgil_crypto.keys.key_pair_type.KeyPairType.KeyType object>
exception UnknownTypeException(key_pair_type)[source]

Bases: Exception

Exception raised when Unknown Type passed to convertion method