Bouncy Castle Cryptography Library 1.79

org.bouncycastle.operator
Interface AADProcessor

All Known Subinterfaces:
InputAEADDecryptor, OutputAEADEncryptor

public interface AADProcessor

Base interface for extra methods required for handling associated data in AEAD ciphers.


Method Summary
 java.io.OutputStream getAADStream()
          Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.
 byte[] getMAC()
          Return the final value of AEAD cipher's MAC.
 

Method Detail

getAADStream

public java.io.OutputStream getAADStream()
Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.
Returns:
a stream for collecting associated data.

getMAC

public byte[] getMAC()
Return the final value of AEAD cipher's MAC.
Returns:
MAC value for the AEAD cipher.

Bouncy Castle Cryptography Library 1.79