AEADCipher.doFinal

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

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

Parameters

macBuf ubyte[]

Buffer for MAC tag.

Return Value

Type: size_t

number of bytes written into out.

Throws

IllegalStateError = if the cipher is in an inappropriate state. dcrypt.exceptions.InvalidCipherTextException = if the MAC fails to match.

Meta