Skip to main content
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.8.0/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)