Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hpke/src/utils/misc.ts>i2Osp

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
function i2Osp
import { i2Osp } from "https://deno.land/x/hpke@1.2.9/src/utils/misc.ts";

Converts integer to octet string. I2OSP implementation.

Parameters

n: number
w: number

Returns

Uint8Array