Skip to main content
Module

x/grm/deps.ts>IGE

MTProto API Client for Deno 🦕
Go to Latest
class IGE
import { IGE } from "https://deno.land/x/grm@0.5.2/deps.ts";

AES-IGE mode.

Constructors

new
IGE(
key: string | Uint32Array | Uint8Array,
iv: string | Uint32Array | Uint8Array,
blockSize?: number,
)

Properties

blockSize: number
cipher: AES
iv: Uint32Array
key: Uint32Array

Methods

decrypt(message: string | Uint32Array | Uint8Array, buf?: Uint32Array): Uint32Array

Decrypts cipher text with AES-IGE mode.

encrypt(message: string | Uint32Array | Uint8Array, buf?: Uint32Array): Uint32Array

Encrypts plain text with AES-IGE mode.