Interface AbstractGetNonceSize

    • Method Detail

      • getNonceSize

        int getNonceSize()
        Unlike Cipher this API is designed for ease of use. Some cryptographic algorithms require an initialization 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 for crypt and for streaming.
        Returns:
        the size of the nonce in bytes or 0 for none.
        See Also:
        Cipher.getIV()