1.1.2 • Published 4 months ago

nistkdf-800-108 v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

nistkdf-800-108

A pure Node.js implementation of the NISTKDF-800-108 Rev. 1. Implementation is validated via CAVP test vectors provided by NIST.

Installation

npm i nistkdf-800-108

Usage

import { counterKdf } from "nistkdf-800-108";

const key = Buffer.from("00112233445566778899001122334455", "hex");
const label = Buffer.from("some-label", "utf-8");
const context = Buffer.from("some-context", "utf-8");

const derivedKey = counterKdf(16, "sha256", key, label, context);
console.log("Derived key:", derivedKey);
1.1.2

4 months ago

1.1.1

4 months ago

1.1.0

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago