crypto/crypto/cipher/blockcipher/block_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.
-
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.
-
CTR
-
Counter (CTR) mode: turns a block cipher into a stream cipher by
encrypting successive counter values and XORing them with the data.