Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/crypto/src/block-modes/base.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/src/block-modes/base.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