-
- 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 AbstractGetNonceSizeInterface togetthe 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 intgetNonceSize()UnlikeCipherthis API is designed for ease of use.
-
-
-
Method Detail
-
getNonceSize
int getNonceSize()
UnlikeCipherthis 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 forcryptand forstreaming.- Returns:
- the size of the nonce in bytes or
0for none. - See Also:
Cipher.getIV()
-
-