Expand description
Tools for working with raw signature algorithms.
Structs§
- Unknown
Algorithm Error - This error is thrown when converting from a string to
SigningAlg
if the algorithm string is unrecognized.
Enums§
- RawSignature
Validation Error - Describes errors that can be identified when validating a raw signature.
- RawSigner
Error - Describes errors that can be identified when generating a raw signature.
- Signing
Alg - Describes the digital signature algorithms allowed by the C2PA spec.
Traits§
- Async
RawSignature Validator - An
AsyncRawSignatureValidator
implementation checks a signature encoded using a specific signature algorithm and a private/public key pair. - Async
RawSigner - Implementations of the
AsyncRawSigner
trait generate a cryptographic signature over an arbitrary byte array. - RawSignature
Validator - 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.