Skip to content

ParsedPkcs7SignerInfoBase ​

ParsedPkcs7SignerInfoBase ​

Fields shared by every decoded SignerInfo, regardless of signed-attribute presence.

ts
interface ParsedPkcs7SignerInfoBase {
	readonly version: number;
	readonly signerIdentifier: ParsedSignerIdentifier;
	readonly digestAlgorithmOid: string;
	readonly digestAlgorithmName: string;
	readonly signatureAlgorithmOid: string;
	readonly signatureAlgorithmName: string;
	readonly signatureAlgorithmParametersDer?: Uint8Array;
	readonly signatureHex: string;
	readonly signature: Uint8Array;
}

Properties

  • readonly version: number — CMS SignerInfo version (typically 1 for issuerAndSerialNumber).
  • readonly signerIdentifier: ParsedSignerIdentifier — Which of the two RFC 5652 §5.3 SignerIdentifier alternatives this SignerInfo uses.
  • readonly digestAlgorithmOid: string — OID of the digest algorithm used to hash the content.
  • readonly digestAlgorithmName: string — Human-readable digest algorithm name (e.g. "SHA-256").
  • readonly signatureAlgorithmOid: string — OID of the algorithm used to produce the signature.
  • readonly signatureAlgorithmName: string — Human-readable signature algorithm name.
  • readonly signatureAlgorithmParametersDer?: Uint8Array — Raw DER of the signature AlgorithmIdentifier parameters, if present.
  • readonly signatureHex: string — Hex-encoded raw signature bytes.
  • readonly signature: Uint8Array — Raw signature bytes.

Released under the MIT License.