-
- All Known Subinterfaces:
AbstractDecryptor
,AbstractEncryptor
,Cryptor
,Decryptor
,Encryptor
- All Known Implementing Classes:
AsymmetricCryptorConfig
,AsymmetricCryptorConfigEcIes
,AsymmetricCryptorConfigRsa
,CryptorConfig
,CryptorImplCipher
,CryptorImplCombined
,DecryptorImplCipher
,DecryptorImplCombined
,EncryptorImplCiper
,EncryptorImplCombined
,SymmetricCryptorConfig
,SymmetricCryptorConfigAes
public interface AbstractGetNonceSize
Interface toget
the nonce size.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getNonceSize()
UnlikeCipher
this API is designed for ease of use.
-
-
-
Method Detail
-
getNonceSize
int getNonceSize()
UnlikeCipher
this API is designed for ease of use. Some cryptographic algorithms require aninitialization vector
(IV) and others do not. With this API you do not have to care and cannot do things wrong. The nonce will be prepended automatically to the encrypted payload and reconstructed from there on decryption. This works both forcrypt
and forstreaming
.- Returns:
- the size of the nonce in bytes or
0
for none. - See Also:
Cipher.getIV()
-
-