Skip to content

ParsedPkcs12MacData

Decoded PKCS#12 MacData block returned by parsePkcs12MacData.

ts
interface ParsedPkcs12MacData {
	readonly digestAlgorithmOid: string;
	readonly digestAlgorithmName: string;
	readonly digestHex: string;
	readonly saltHex: string;
	readonly iterations: number;
	readonly verification: valid | invalid | unchecked;
}

Properties

  • readonly digestAlgorithmOid: string — OID of the digest algorithm (currently always SHA-256).
  • readonly digestAlgorithmName: string — Human-readable digest algorithm name (currently "SHA-256").
  • readonly digestHex: string — Hex-encoded MAC digest value.
  • readonly saltHex: string — Hex-encoded salt bytes used during key derivation.
  • readonly iterations: number — Number of PKCS#12 KDF iterations.
  • readonly verification: valid | invalid | unchecked — MAC verification outcome: 'unchecked' when no password was supplied during parsing, otherwise 'valid' or 'invalid'.

Released under the MIT License.