GCMEngine

OOP Wrapper for GCM

@safe
class GCMEngine : IAEADEngine {}

Constructors

this
this(IBlockCipher c)

Inherited Members

From IAEADEngine

start
void start(bool forEncryption, in ubyte[] key, in ubyte[] nonce)

Initialize the underlying cipher.

name
string name [@property getter]
processAADBytes
void processAADBytes(in ubyte[] aad)

Process additional authenticated data.

processBytes
ubyte[] processBytes(in ubyte[] input, ubyte[] output)

Encrypt or decrypt a block of bytes.

finish
size_t finish(ubyte[] macBuf, ubyte[] output)

Close the AEAD cipher by producing the remaining output and a authentication tag.

getUpdateOutputSize
size_t getUpdateOutputSize(size_t len)
getOutputSize
size_t getOutputSize(size_t len)

Meta