fido2.cose
Attributes
Classes
A COSE formatted public key. |
|
A COSE key with an unsupported algorithm. |
|
A COSE formatted public key. |
|
A COSE formatted public key. |
|
A COSE formatted public key. |
|
A COSE formatted public key. |
|
A COSE formatted public key. |
|
A COSE formatted public key. |
|
A COSE formatted public key. |
|
A COSE formatted public key. |
Module Contents
- class fido2.cose.CoseKey[source]
Bases:
dict
A COSE formatted public key.
- Parameters:
_ – The COSE key paramters.
- Variables:
ALGORITHM – COSE algorithm identifier.
- classmethod from_cryptography_key(public_key)[source]
- Abstractmethod:
- Parameters:
public_key (cryptography.hazmat.primitives.asymmetric.types.PublicKeyTypes)
- Return type:
T_CoseKey
Converts a PublicKey object from Cryptography into a COSE key.
- Parameters:
public_key (cryptography.hazmat.primitives.asymmetric.types.PublicKeyTypes) – Either an EC or RSA public key.
- Returns:
A CoseKey.
- Return type:
T_CoseKey
- fido2.cose.T_CoseKey
- class fido2.cose.ES256[source]
Bases:
CoseKey
A COSE formatted public key.
- Parameters:
_ – The COSE key paramters.
- Variables:
ALGORITHM – COSE algorithm identifier.
- ALGORITHM
- verify(message, signature)[source]
Validates a digital signature over a given message.
- Parameters:
message – The message which was signed.
signature – The signature to check.
- class fido2.cose.ES384[source]
Bases:
CoseKey
A COSE formatted public key.
- Parameters:
_ – The COSE key paramters.
- Variables:
ALGORITHM – COSE algorithm identifier.
- ALGORITHM
- class fido2.cose.ES512[source]
Bases:
CoseKey
A COSE formatted public key.
- Parameters:
_ – The COSE key paramters.
- Variables:
ALGORITHM – COSE algorithm identifier.
- ALGORITHM
- class fido2.cose.RS256[source]
Bases:
CoseKey
A COSE formatted public key.
- Parameters:
_ – The COSE key paramters.
- Variables:
ALGORITHM – COSE algorithm identifier.
- ALGORITHM
- class fido2.cose.PS256[source]
Bases:
CoseKey
A COSE formatted public key.
- Parameters:
_ – The COSE key paramters.
- Variables:
ALGORITHM – COSE algorithm identifier.
- ALGORITHM
- class fido2.cose.EdDSA[source]
Bases:
CoseKey
A COSE formatted public key.
- Parameters:
_ – The COSE key paramters.
- Variables:
ALGORITHM – COSE algorithm identifier.
- ALGORITHM
- class fido2.cose.RS1[source]
Bases:
CoseKey
A COSE formatted public key.
- Parameters:
_ – The COSE key paramters.
- Variables:
ALGORITHM – COSE algorithm identifier.
- ALGORITHM
- class fido2.cose.ES256K[source]
Bases:
CoseKey
A COSE formatted public key.
- Parameters:
_ – The COSE key paramters.
- Variables:
ALGORITHM – COSE algorithm identifier.
- ALGORITHM