Skip to content

SignatureVerifierInput ​

SignatureVerifierInput ​

One signature handed to a SignatureVerifier.

ts
interface SignatureVerifierInput {
	readonly signatureAlgorithm: {
  readonly oid: string;
  readonly parametersDer?: Uint8Array
};
	readonly signerSpkiDer: Uint8Array;
	readonly signerPublicKeyParametersDer?: Uint8Array;
	readonly signature: Uint8Array;
	readonly signatureUnusedBits: number;
	readonly data: Uint8Array;
}

Properties

  • readonly signatureAlgorithm: { readonly oid: string; readonly parametersDer?: Uint8Array } — The signature algorithm as carried beside the signature.
  • readonly signerSpkiDer: Uint8Array — DER SubjectPublicKeyInfo of the signer.
  • readonly signerPublicKeyParametersDer?: Uint8Array — DER parameters to verify with: RFC 5280 §6.1 working_public_key_parameters. These are the signer's own key parameters, or the parameters it inherits along the certification path when its own are absent or NULL (RFC 5280 §6.1.4 (e), RFC 3279 §2.3.2). Absent when the path leaves none.
  • readonly signature: Uint8Array — The signature bytes as carried.
  • readonly signatureUnusedBits: number — Unused bits in the final octet of signature, from a signatureValue BIT STRING. 0 for a signature carried as octets.
  • readonly data: Uint8Array — The exact bytes the signature covers.

Released under the MIT License.