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.GCMParameterSpec
Algorithm 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 protected
CounterGCMParameterSpec(int tLen, byte[] src)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static long
addExact(long var0, long var2)
byte[]
getIV()
(package private) static long
getLong(byte[] buf, int off, int len)
protected void
incrementCounter()
(package private) static int
putLong(long value, byte[] buf, int off, int len)
-
-
-
Method Detail
-
incrementCounter
protected void incrementCounter()
-
getIV
public byte[] getIV()
- Overrides:
getIV
in 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)
-
-