buffer as input and output (encrypt(block, block)), so BlockCipherT must support in-place operation.
Parameters
BlockCipherT | The block cipher implementation (e.g., AES). |
Block Cipher Modes of Operation.
Cipher Block Chaining (CBC) Mode.
buffer as input and output (encrypt(block, block)), so BlockCipherT must support in-place operation.
BlockCipherT | The block cipher implementation (e.g., AES). |
void initialize(CipherOperation op, SecretKey key,
const(ubyte)[] iv)void init(CipherOperation op, Key key, const(ubyte)[] iv = null)ubyte[] update(const(ubyte)[] input)ubyte[] finish(const(ubyte)[] input = null)this(Padding padding = new PKCS7Padding())Constructs a CBC mode cipher.Counter (CTR) Mode.
Turns a block cipher into a stream cipher.
void wipe() nothrow @nogc @trustedZeroizes the block-cipher schedule, counter, and buffered keystream.void initialize(CipherOperation op, SecretKey key,
const(ubyte)[] iv)void init(CipherOperation op, Key key, const(ubyte)[] iv = null)ubyte[] update(const(ubyte)[] input)ubyte[] finish(const(ubyte)[] input = null)Electronic Codebook (ECB) Mode.
void initialize(CipherOperation op, SecretKey key,
const(ubyte)[] iv)void init(CipherOperation op, Key key, const(ubyte)[] iv = null)ubyte[] update(const(ubyte)[] input)ubyte[] finish(const(ubyte)[] input = null)this(Padding padding = new PKCS7Padding())Cipher Feedback (CFB) Mode (CFB-BlockSize).
void initialize(CipherOperation op, SecretKey key,
const(ubyte)[] iv)void init(CipherOperation op, Key key, const(ubyte)[] iv = null)ubyte[] update(const(ubyte)[] input)ubyte[] finish(const(ubyte)[] input = null)Output Feedback (OFB) Mode.
the same buffer (encrypt(_iv, _iv)), so BlockCipherT must support in-place operation.
void initialize(CipherOperation op, SecretKey key,
const(ubyte)[] iv)void init(CipherOperation op, Key key, const(ubyte)[] iv = null)ubyte[] update(const(ubyte)[] input)ubyte[] finish(const(ubyte)[] input = null)XEX-based Tweaked-codebook mode with ciphertext Stealing (XTS).
Used for disk encryption.
void initialize(CipherOperation op, SecretKey key,
const(ubyte)[] iv)void init(CipherOperation op, Key key, const(ubyte)[] iv = null)ubyte[] update(const(ubyte)[] input)ubyte[] finish(const(ubyte)[] input = null)Galois/Counter Mode (GCM).
void initialize(SecretKey key)ubyte[] seal(const(ubyte)[] plaintext, const(ubyte)[] aad, const(ubyte)[] nonce, ubyte[] output = null)ubyte[] open(const(ubyte)[] ciphertext, const(ubyte)[] aad, const(ubyte)[] nonce, ubyte[] output = null)Counter with CBC-MAC (CCM).
cipher with the same buffer as input and output (encrypt(x, x)), so BlockCipherT must support in-place operation.
void initialize(SecretKey key)ubyte[] seal(const(ubyte)[] plaintext, const(ubyte)[] aad, const(ubyte)[] nonce, ubyte[] output = null)ubyte[] open(const(ubyte)[] ciphertext, const(ubyte)[] aad, const(ubyte)[] nonce, ubyte[] output = null)