Class GCM_MESSAGE_PARAMS

    • Constructor Detail

      • GCM_MESSAGE_PARAMS

        public GCM_MESSAGE_PARAMS​(byte[] iv,
                                  long ivFixedBits,
                                  long ivGenerator,
                                  byte[] tag)
        Create a new GCM_MESSAGE_PARAMS object with the given attributes.
        Parameters:
        iv - Initialization vector
        ivFixedBits - number of bits of the original IV to preserve when generating an
        new IV. These bits are counted from the Most significant bits (to the right).
        ivGenerator - Function used to generate a new IV. Each IV must be unique for a given session.
        tag - location of the authentication tag which is returned on MessageEncrypt, and provided on MessageDecrypt.
    • Method Detail

      • getParams

        public CK_GCM_MESSAGE_PARAMS getParams()
        Description copied from class: CkParams
        Get this parameters object as an object of the corresponding *_PARAMS class of the iaik.pkcs.pkcs11.wrapper package.
        Specified by:
        getParams in class CkParams
        Returns:
        The object of the corresponding *_PARAMS class.
      • toString

        public java.lang.String toString​(java.lang.String indent)
        Specified by:
        toString in class CkParams