Expand description
A public encryption key alone is not authenticated. It needs to be tied to a cryptographic identity, which is provided by a signature keypair. This is done by signing the public key, and requiring consumers to verify the public key before consumption by using unwrap_and_verify.
Structs§
- Signed
Public Key SignedAsymmetricPublicKey
is a public encryption key, signed by the owner of the encryption keypair. This wrapping ensures that the consumer of the public key MUST verify the identity of the Signer before they can use the public key for encryption.- Signed
Public KeyMessage SignedAsymmetricPublicKeyMessage
is a message that once signed, makes a claim towards owning a public encryption key.
Enums§
- Public
KeyFormat 🔒 PublicKeyFormat
defines the format of the public key in aSignedAsymmetricPublicKeyMessage
. Currently, only ASN.1 Subject Public Key Info (SPKI) is used, but CoseKey may become another option in the future.