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

x/grm/mod.ts>crypto.CTR

MTProto API Client for Deno 🦕
Go to Latest
class crypto.CTR
import { crypto } from "https://deno.land/x/grm@0.5.2/mod.ts";
const { CTR } = crypto;

Constructors

new
CTR(key: Buffer, counter: any)

Properties

private
_aes: AES
private
_counter: Counter
private
optional
_remainingCounter: Buffer
private
_remainingCounterIndex: number

Methods

encrypt(plainText: any)
update(plainText: any)