Class GcmCipher.CounterGCMParameterSpec
java.lang.Object
javax.crypto.spec.GCMParameterSpec
com.hierynomus.sshj.transport.cipher.GcmCipher.CounterGCMParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
- Enclosing class:
GcmCipher
Algorithm parameters for AES/GCM that assumes the IV uses an 8-byte counter field as its most significant bytes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.crypto.spec.GCMParameterSpec
getTLen
-
Field Details
-
iv
protected final byte[] iv
-
-
Constructor Details
-
CounterGCMParameterSpec
protected CounterGCMParameterSpec(int tLen, byte[] src)
-
-
Method Details
-
incrementCounter
protected void incrementCounter() -
getIV
public byte[] getIV()- Overrides:
getIV
in classGCMParameterSpec
-
addExact
static long addExact(long var0, long var2) -
getLong
static long getLong(byte[] buf, int off, int len) -
putLong
static int putLong(long value, byte[] buf, int off, int len)
-