Skip to content
HChaCha20
TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
hchacha20_init_state
util
LICENSE
README.md
mod.ts
test.ts
test_vectors.json

README.md

hchacha20

ci

HChaCha20 PRF

Special-purpose hashing, such as X25519 key derivation, or XChacha20 initialization. If in doubt, do not use.

4 background see djb's HSalsa20 paper, and the XChaCha20 IRTF CFRG draft.

API

export const OUTPUT_BYTES: number = 32;
export const KEY_BYTES: number = 32;
export const NONCE_BYTES: number = 16;
export const CONSTANT_BYTES: number = 16;

export function hchacha20(
  out: Uint8Array,
  key: Uint8Array,
  nonce: Uint8Array,
  constant?: Uint8Array
): void;

License

MIT

You can’t perform that action at this time.