Package org.apache.sshd.common.cipher
Interface CipherInformation
-
- All Superinterfaces:
AlgorithmNameProvider
,KeySizeIndicator
- All Known Subinterfaces:
Cipher
,CipherFactory
- All Known Implementing Classes:
BaseCipher
,BaseGCMCipher
,BaseRC4Cipher
,BuiltinCiphers
,ChaCha20Cipher
,CipherNone
public interface CipherInformation extends AlgorithmNameProvider, KeySizeIndicator
The reported algorithm name refers to the cipher base name - e.g., "AES", "ARCFOUR", etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAuthenticationTagSize()
int
getCipherBlockSize()
int
getIVSize()
int
getKdfSize()
java.lang.String
getTransformation()
-
Methods inherited from interface org.apache.sshd.common.AlgorithmNameProvider
getAlgorithm
-
Methods inherited from interface org.apache.sshd.common.keyprovider.KeySizeIndicator
getKeySize
-
-
-
-
Method Detail
-
getTransformation
java.lang.String getTransformation()
- Returns:
- The actual transformation used - e.g., AES/CBC/NoPadding
-
getIVSize
int getIVSize()
- Returns:
- Size of the initialization vector (in bytes)
-
getAuthenticationTagSize
int getAuthenticationTagSize()
- Returns:
- Size of the authentication tag (AT) in bytes or 0 if this cipher does not support authentication
-
getCipherBlockSize
int getCipherBlockSize()
- Returns:
- Size of block data used by the cipher (in bytes). For stream ciphers this value is (currently) used to indicate some average work buffer size to be used for the automatic re-keying mechanism described in RFC 4253 - Section 9
-
getKdfSize
int getKdfSize()
- Returns:
- The block size (in bytes) used to derive the secret key for this cipher
-
-