Package org.conscrypt

Class GCMParameters


  • public class GCMParameters
    extends Object
    GCM parameters used during an ciphering operation with OpenSSLCipher. This class exists solely for backward compatibility with Android versions that did not have the GCMParameterSpec class.
    • Field Detail

      • tLen

        public final int tLen
        The tag length in bits.
      • iv

        public final byte[] iv
        Actually the nonce value for the GCM operation.
    • Constructor Detail

      • GCMParameters

        public GCMParameters​(int tLen,
                             byte[] iv)
    • Method Detail

      • getTLen

        public int getTLen()
        Returns the tag length in bits.
      • getIV

        public byte[] getIV()
        Returns a non-cloned version of the IV.