mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8201756: Improve cipher inputs
Clarify spec of CipherInputStream in Javadoc comments Reviewed-by: ascarpino
This commit is contained in:
parent
a58b68027b
commit
d45e830907
1 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,13 @@ import javax.crypto.IllegalBlockSizeException;
|
|||
* that are not thrown by its ancestor classes. In particular, the
|
||||
* <code>skip</code> method skips, and the <code>available</code>
|
||||
* method counts only data that have been processed by the encapsulated Cipher.
|
||||
* This class may catch BadPaddingException and other exceptions thrown by
|
||||
* failed integrity checks during decryption. These exceptions are not
|
||||
* re-thrown, so the client may not be informed that integrity checks
|
||||
* failed. Because of this behavior, this class may not be suitable
|
||||
* for use with decryption in an authenticated mode of operation (e.g. GCM).
|
||||
* Applications that require authenticated encryption can use the Cipher API
|
||||
* directly as an alternative to using this class.
|
||||
*
|
||||
* <p> It is crucial for a programmer using this class not to use
|
||||
* methods that are not defined or overridden in this class (such as a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue