GCMCipher

OOP Wrapper for GCM

Constructors

this
this(BlockCipher c)

Members

Functions

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

Finish the operation either appending or verifying the MAC at the end of the data.

getOutputSize
size_t getOutputSize(size_t len)

return the size of the output buffer required for a processBytes plus a doFinal with an input of len bytes.

getUnderlyingCipher
BlockCipher getUnderlyingCipher()

return the cipher this object wraps.

getUpdateOutputSize
size_t getUpdateOutputSize(size_t len)

return the size of the output buffer required for a processBytes an input of len bytes.

processAADBytes
void processAADBytes(ubyte[] aad)

Add a sequence of bytes to the associated data check. If the implementation supports it, this will be an online operation and will not retain the associated data.

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

process a block of bytes from in putting the result into out.

reset
void reset()

Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one).

start
void start(bool forEncryption, ubyte[] key, ubyte[] iv)

initialize the underlying cipher..

Properties

name
string name [@property getter]

Return the name of the algorithm.

Inherited Members

From AEADCipher

start
void start(bool forEncryption, ubyte[] key, ubyte[] iv)

initialize the underlying cipher. Parameter can either be an AEADParameters or a ParametersWithIV object.

name
string name [@property getter]

Return the name of the algorithm.

processAADBytes
void processAADBytes(ubyte[] aad)

Add a sequence of bytes to the associated data check. <br>If the implementation supports it, this will be an online operation and will not retain the associated data.

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

process a block of bytes from in putting the result into out.

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

Finish the operation either appending or verifying the MAC at the end of the data.

getUpdateOutputSize
size_t getUpdateOutputSize(size_t len)

return the size of the output buffer required for a processBytes an input of len bytes.

getOutputSize
size_t getOutputSize(size_t len)

return the size of the output buffer required for a processBytes plus a doFinal with an input of len bytes.

Meta