Skip to main content
The Deno 2 Release Candidate is 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