AEADCipherWrapper

Wrapper class for AEAD ciphers

Members

Functions

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

Finish the operation. Does not verify the mac.

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.

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.

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

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

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