Skip to main content
Module

x/mtkruto/0_deps.ts>ctr256

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
function ctr256
import { ctr256 } from "https://deno.land/x/mtkruto@0.1.105/0_deps.ts";

Performs CTR-256 encryption/decryption.

Parameters

data: Uint8Array

The data, larger than a byte

key: Uint8Array

32-byte encryption key

iv: Uint8Array

16-byte initialization vector

state: Uint8Array

1-byte state