Skip to main content
Module

x/crypto/block-modes.ts>BlockCipherMode

🔐 Fastest crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, DES, 3DES, HMAC, HKDF, PBKDF2
Latest
class BlockCipherMode
Abstract
import { BlockCipherMode } from "https://deno.land/x/crypto@v0.10.1/block-modes.ts";

Block cipher mode of operation.

Constructors

new
BlockCipherMode(
key: Uint8Array,
padding?: Padding,
)

Properties

protected
readonly
blockSize: number
protected
readonly
cipher: BlockCipher
protected
readonly
padding: Padding

Methods

protected
checkBlockSize(size: number)
protected
checkIvSize(size: number)
abstract
decrypt(data: Uint8Array): Uint8Array
abstract
encrypt(data: Uint8Array): Uint8Array