Class FipsInputAEADDecryptor<T extends Parameters>

  • Type Parameters:
    T - the parameters type associated with the final implementation of this decryptor.
    All Implemented Interfaces:
    AADProcessor, InputAEADDecryptor<T>, InputDecryptor<T>

    public abstract class FipsInputAEADDecryptor<T extends Parameters>
    extends java.lang.Object
    implements InputAEADDecryptor<T>
    Base class for the approved mode InputAEADDecryptor implementations.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract UpdateOutputStream getAADStream()
      Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.
      abstract java.io.InputStream getDecryptingStream​(java.io.InputStream in)
      Return a stream which will decrypt what it reads from the stream in and pass it through.
      abstract byte[] getMAC()
      Return the final value of AEAD cipher's MAC.
      abstract T getParameters()
      Return the parameters for this decryptor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getAADStream

        public abstract UpdateOutputStream getAADStream()
        Description copied from interface: AADProcessor
        Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.
        Specified by:
        getAADStream in interface AADProcessor
        Returns:
        a stream for collecting associated data.
      • getDecryptingStream

        public abstract java.io.InputStream getDecryptingStream​(java.io.InputStream in)
        Description copied from interface: InputDecryptor
        Return a stream which will decrypt what it reads from the stream in and pass it through.
        Specified by:
        getDecryptingStream in interface InputDecryptor<T extends Parameters>
        Parameters:
        in - the source of encrypted data..
        Returns:
        a stream which produces decrypted data based on bytes read from in..
      • getMAC

        public abstract byte[] getMAC()
        Description copied from interface: AADProcessor
        Return the final value of AEAD cipher's MAC.
        Specified by:
        getMAC in interface AADProcessor
        Returns:
        MAC value for the AEAD cipher.