Pkcs12MacOptions
Pkcs12MacOptions
Input for createPkcs12MacData. type selects the MAC: 'pkcs12-kdf' (the default) is the RFC 7292 HMAC-SHA-256 MAC keyed by the PKCS#12 KDF, and 'pbmac1' is RFC 9879 PBMAC1 with PBKDF2-HMAC-SHA-256, a 32-octet key and HMAC-SHA-256.
ts
type Pkcs12MacOptions = {
readonly type?: "pkcs12-kdf";
readonly password: string;
readonly iterations?: number;
readonly salt?: Uint8Array
} | {
readonly type: "pbmac1";
readonly password: string;
readonly iterations?: number;
readonly salt?: Uint8Array
}