hkdfParams.salt
- 类型: <ArrayBuffer> | <TypedArray> | <DataView> | <Buffer>
盐值显著提高了 HKDF 算法的强度。它应当是随机的或伪随机的,并且长度应与摘要函数的输出相同(例如,如果使用 'SHA-256' 作为摘要函数,盐值应为 256 位的随机数据)。
【The salt value significantly improves the strength of the HKDF algorithm.
It should be random or pseudorandom and should be the same length as the
output of the digest function (for instance, if using 'SHA-256' as the
digest, the salt should be 256-bits of random data).】