@jscrypto/modes
v0.12.0
Published
Mode components for @jscrypto block ciphers.
Downloads
303
Readme
@jscrypto/modes
Mode components for @jscrypto/core block ciphers.
import { createRegistry } from '@jscrypto/core';
import { cbc } from '@jscrypto/modes/cbc';
const registry = createRegistry().use(cbc);Use modesPreset() to register CBC, CFB, CTR, ECB, GCM, and OFB together.
GCM in this package is the compatibility mode path for
createCipher({ cipher: 'AES', mode: 'GCM' }). Prefer
createAead({ algorithm: 'AES-GCM', key }) from @jscrypto/ciphers for new
authenticated encryption code.
