Class FipsAES.AuthParameters

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getIV()
      Return the initialization vector associated with this parameter set.
      int getMACSizeInBits()
      Return the size of the MAC these parameters are for.
      FipsAES.AuthParameters withIV​(byte[] iv)
      Create a new parameter set with a different IV.
      FipsAES.AuthParameters withIV​(java.security.SecureRandom random)
      Create a new parameter set with a different IV based on the output of the passed in random.
      FipsAES.AuthParameters withIV​(java.security.SecureRandom random, int ivLen)
      Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.
      FipsAES.AuthParameters withMACSize​(int macSizeInBits)
      Return a new set of parameters specifying a specific mac size.
      • Methods inherited from class java.lang.Object

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

      • getIV

        public byte[] getIV()
        Description copied from interface: ParametersWithIV
        Return the initialization vector associated with this parameter set.
        Specified by:
        getIV in interface ParametersWithIV
        Returns:
        the IV for these parameters.
      • withIV

        public FipsAES.AuthParameters withIV​(byte[] iv)
        Description copied from interface: ParametersWithIV
        Create a new parameter set with a different IV.
        Specified by:
        withIV in interface ParametersWithIV
        Parameters:
        iv - the IV to use.
        Returns:
        a copy of the current parameter set with the new IV.
      • withIV

        public FipsAES.AuthParameters withIV​(java.security.SecureRandom random)
        Description copied from interface: ParametersWithIV
        Create a new parameter set with a different IV based on the output of the passed in random.
        Specified by:
        withIV in interface ParametersWithIV
        Parameters:
        random - the SecureRandom to use as the source of IV data.
        Returns:
        a copy of the current parameter set with the new IV.
      • withIV

        public FipsAES.AuthParameters withIV​(java.security.SecureRandom random,
                                             int ivLen)
        Description copied from interface: AuthenticationParametersWithIV
        Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.
        Specified by:
        withIV in interface AuthenticationParametersWithIV
        Parameters:
        random - source of randomness for iv (nonce)
        ivLen - length of the iv (nonce) in bytes to use with the algorithm.
      • withMACSize

        public FipsAES.AuthParameters withMACSize​(int macSizeInBits)
        Return a new set of parameters specifying a specific mac size.
        Specified by:
        withMACSize in interface AuthenticationParameters
        Parameters:
        macSizeInBits - bit length of the MAC length.
        Returns:
        a new set of AuthParameters for the MAC size.