Class GcmCipher.CounterGCMParameterSpec
- java.lang.Object
-
- javax.crypto.spec.GCMParameterSpec
-
- com.hierynomus.sshj.transport.cipher.GcmCipher.CounterGCMParameterSpec
-
- All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec
- Enclosing class:
- GcmCipher
protected static class GcmCipher.CounterGCMParameterSpec extends javax.crypto.spec.GCMParameterSpecAlgorithm parameters for AES/GCM that assumes the IV uses an 8-byte counter field as its most significant bytes.
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]iv
-
Constructor Summary
Constructors Modifier Constructor Description protectedCounterGCMParameterSpec(int tLen, byte[] src)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static longaddExact(long var0, long var2)byte[]getIV()(package private) static longgetLong(byte[] buf, int off, int len)protected voidincrementCounter()(package private) static intputLong(long value, byte[] buf, int off, int len)
-
-
-
Method Detail
-
incrementCounter
protected void incrementCounter()
-
getIV
public byte[] getIV()
- Overrides:
getIVin classjavax.crypto.spec.GCMParameterSpec
-
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)
-
-