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.