Function c2pa::create_signer::from_keys

source ·
pub fn from_keys(
    signcert: &[u8],
    pkey: &[u8],
    alg: SigningAlg,
    tsa_url: Option<String>
) -> Result<Box<dyn Signer>>
Available on crate feature openssl_sign only.
Expand description

Creates a Signer instance using signing certificate and private key as byte slices.

The signing certificate and private key are passed to the underlying C++ code, which copies them into its own storage.

§Arguments

  • signcert - Signing certificate
  • pkey - Private key
  • alg - Format for signing
  • tsa_url - Optional URL for a timestamp authority