Skip to content

Pkcs12MacOptions

Input for createPkcs12MacData.

ts
interface Pkcs12MacOptions {
	readonly password: string;
	readonly iterations?: number;
	readonly salt?: Uint8Array;
}

Properties

  • readonly password: string — Password used to derive the HMAC key via the PKCS#12 KDF.
  • readonly iterations?: number — PKCS#12 KDF iteration count. Default: 2048.
  • readonly salt?: Uint8Array — Random salt. Default: 16 cryptographically random bytes.

Released under the MIT License.