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
protected static class BaseGCMCipher.CounterGCMParameterSpec extends 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 long
initialCounter
protected byte[]
iv
-
Constructor Summary
Constructors Modifier Constructor Description protected
CounterGCMParameterSpec(int tLen, byte[] src)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getIV()
protected void
incrementCounter()
-
Methods inherited from class javax.crypto.spec.GCMParameterSpec
getTLen
-
-
-
-
Method Detail
-
incrementCounter
protected void incrementCounter()
-
getIV
public byte[] getIV()
- Overrides:
getIV
in classGCMParameterSpec
-
-