All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.crypto.internal.modes.AEADBlockCipher Maven / Gradle / Ivy

Go to download

The FIPS 140-2 Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms certified to FIPS 140-2 level 1. This jar contains the debug version JCE provider and low-level API for the BC-FJA version 1.0.2.3, FIPS Certificate #3514. Please note the debug jar is not certified.

There is a newer version: 2.0.0
Show newest version
/***************************************************************/
/******    DO NOT EDIT THIS CLASS bc-java SOURCE FILE     ******/
/***************************************************************/
package org.bouncycastle.crypto.internal.modes;

import org.bouncycastle.crypto.internal.BlockCipher;

/**
 * A block cipher mode that includes authenticated encryption with a streaming mode and optional associated data.
 * 

* Implementations of this interface may operate in a packet mode (where all input data is buffered and * processed dugin the call to {@link #doFinal(byte[], int)}), or in a streaming mode (where output data is * incrementally produced with each call to {@link #processByte(byte, byte[], int)} or * {@link #processBytes(byte[], int, int, byte[], int)}. *
This is important to consider during decryption: in a streaming mode, unauthenticated plaintext data * may be output prior to the call to {@link #doFinal(byte[], int)} that results in an authentication * failure. The higher level protocol utilising this cipher must ensure the plaintext data is handled * appropriately until the end of data is reached and the entire ciphertext is authenticated. * * @see org.bouncycastle.crypto.internal.params.AEADParameters */ public interface AEADBlockCipher extends AEADCipher { /** * return the cipher this object wraps. * * @return the cipher this object wraps. */ BlockCipher getUnderlyingCipher(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy