Module raw_signature

Source
Expand description

Tools for working with raw signature algorithms.

Structs§

UnknownAlgorithmError
This error is thrown when converting from a string to SigningAlg if the algorithm string is unrecognized.

Enums§

RawSignatureValidationError
Describes errors that can be identified when validating a raw signature.
RawSignerError
Describes errors that can be identified when generating a raw signature.
SigningAlg
Describes the digital signature algorithms allowed by the C2PA spec.

Traits§

AsyncRawSignatureValidator
An AsyncRawSignatureValidator implementation checks a signature encoded using a specific signature algorithm and a private/public key pair.
AsyncRawSigner
Implementations of the AsyncRawSigner trait generate a cryptographic signature over an arbitrary byte array.
RawSignatureValidator
A RawSignatureValidator implementation checks a signature encoded using a specific signature algorithm and a private/public key pair.
RawSigner
Implementations of the RawSigner trait generate a cryptographic signature over an arbitrary byte array.

Functions§

async_signer_from_cert_chain_and_private_key
Return a built-in AsyncRawSigner instance using the provided signing certificate and private key.
signer_from_cert_chain_and_private_key
Return a built-in RawSigner instance using the provided signing certificate and private key.
validator_for_signing_alg
Return a built-in signature validator for the requested signature algorithm.