Skip to content

Pbes2Parameters ​

Pbes2Parameters ​

Resolved PBES2 algorithm parameters, either parsed from DER or built by encryptPbes2.

ts
interface Pbes2Parameters {
	readonly iterations: number;
	readonly salt: Uint8Array;
	readonly iv: Uint8Array;
	readonly cipher: Pbes2EncryptionScheme;
	readonly prf: Pbes2Prf;
}

Properties

  • readonly iterations: number — PBKDF2 iteration count, an integer from 1 to 4294967295.
  • readonly salt: Uint8Array — PBKDF2 salt bytes.
  • readonly iv: Uint8Array — AES-CBC initialization vector.
  • readonly cipher: Pbes2EncryptionScheme — AES-CBC key-size variant.
  • readonly prf: Pbes2Prf — PBKDF2 pseudo-random function.

Released under the MIT License.