Class GCM_PARAMS


  • public class GCM_PARAMS
    extends CkParams
    Represents the CK_GCM_PARAMS.
    Author:
    Lijun Liao (xipki)
    • Constructor Detail

      • GCM_PARAMS

        public GCM_PARAMS​(byte[] iv,
                          byte[] aad,
                          int tagBits)
        Create a new GCM_PARAMS object with the given attributes.
        Parameters:
        iv - Initialization vector
        aad - additional authentication data. This data is authenticated but not encrypted.
        tagBits - length of authentication tag (output following ciphertext) in bits. (0 - 128) depending on the algorithm implementation within the hsm, ulTagBits may be any one of the following five values: 128, 120, 112, 104, or 96, may be 64 or 32;
    • Method Detail

      • getParams

        public CK_GCM_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.