Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hpke/src/kdfs/hkdf.ts>HkdfNative

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
class HkdfNative
implements KdfInterface
import { HkdfNative } from "https://deno.land/x/hpke@1.2.9/src/kdfs/hkdf.ts";

Constructors

new
HkdfNative()

Properties

protected
_suiteId: Uint8Array
protected
readonly
algHash: HmacKeyGenParams
readonly
hashSize: number
readonly
id: KdfId

Methods

protected
_checkInit(): void
buildLabeledIkm(label: Uint8Array, ikm: Uint8Array): Uint8Array
buildLabeledInfo(
label: Uint8Array,
info: Uint8Array,
len: number,
): Uint8Array
expand(
prk: ArrayBuffer,
info: ArrayBuffer,
len: number,
): Promise<ArrayBuffer>
extract(salt: ArrayBuffer, ikm: ArrayBuffer): Promise<ArrayBuffer>
extractAndExpand(
salt: ArrayBuffer,
ikm: ArrayBuffer,
info: ArrayBuffer,
len: number,
): Promise<ArrayBuffer>
init(suiteId: Uint8Array): void
labeledExpand(
prk: ArrayBuffer,
label: Uint8Array,
info: Uint8Array,
len: number,
): Promise<ArrayBuffer>
labeledExtract(
salt: ArrayBuffer,
label: Uint8Array,
ikm: Uint8Array,
): Promise<ArrayBuffer>