Class: KDFParams

type/kdf_params~KDFParams(version, hash, cipher, replacementFingerprint)

new KDFParams(version, hash, cipher, replacementFingerprint)

Parameters:
Name Type Description
version Integer

Version, defaults to 1

hash enums.hash

Hash algorithm

cipher enums.symmetric

Symmetric algorithm

replacementFingerprint Uint8Array

(forwarding only) fingerprint to use instead of recipient one (v5 keys, the 20 leftmost bytes of the fingerprint)

Source:

Methods

read(input) → {Number}

Read KDFParams from an Uint8Array

Parameters:
Name Type Description
input Uint8Array

Where to read the KDFParams from

Source:
Returns:

Number of read bytes.

Type
Number

write(forReplacementParamsopt) → {Uint8Array}

Write KDFParams to an Uint8Array

Parameters:
Name Type Attributes Description
forReplacementParams Boolean <optional>

forwarding only: whether to serialize data to use for replacement params

Source:
Returns:

Array with the KDFParams value

Type
Uint8Array