crypto/crypto/cipher/cipher library

Classes

AES
AES block cipher (128/192/256-bit keys), operating on single 16-byte blocks. Wrap in CBC or CTR for a mode of operation.
BinaryNumeralString
Numeral string representation for FF1 in binary form (radix = 2).
BlockCipher
A raw block cipher: encrypts/decrypts exactly one fixed-size block at a time, with no mode of operation applied.
BlockCipherCbc
A block cipher running in CBC mode. Unlike BlockCipher, this is stateful: each call chains off the previous block's ciphertext, so the same instance must be used for a message's blocks in order.
BlockCipherPadding
Adds and removes block cipher padding. See the library comment above for why unpad is written the way it is.
CBC
CBC mode over a BuBlockCipher. Stateful: encrypt/decrypt each handle one block and carry the chaining value forward to the next call.
ChaCha20
ChaCha20 stream cipher (RFC 8439).
CTR
Counter (CTR) mode: turns a block cipher into a stream cipher by encrypting successive counter values and XORing them with the data.
FF1<T extends NumeralString<T>>
FF1Binary
FF1 format-preserving encryption specialized for binary data.
FF1Flexible
FF1 format-preserving encryption using a flexible numeral string.
FF1Radix
Represents an FF1 radix configuration, including its type and length constraints.
FlexibleNumeralString
Numeral string representation for FF1 with flexible radix digits.
NumeralString<T extends NumeralString<T>>
Abstract interface representing a numeral string over some radix.

Enums

FF1Encoding
Encoding modes for FF1 format-preserving encryption.
PaddingAlgorithm
Block cipher padding schemes.