Package org.apache.sshd.common.cipher
Class BaseGCMCipher.CounterGCMParameterSpec
java.lang.Object
javax.crypto.spec.GCMParameterSpec
org.apache.sshd.common.cipher.BaseGCMCipher.CounterGCMParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
- Enclosing class:
BaseGCMCipher
Algorithm parameters for AES/GCM that assumes the IV uses an 8-byte counter field as its least 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 -
initialCounter
protected final long initialCounter
-
-
Constructor Details
-
CounterGCMParameterSpec
protected CounterGCMParameterSpec(int tLen, byte[] src)
-
-
Method Details
-
incrementCounter
protected void incrementCounter() -
getIV
public byte[] getIV()- Overrides:
getIV
in classGCMParameterSpec
-