jdk/src/share/classes/com/sun/crypto/provider/PBEWithMD5AndTripleDESCipher.java
changeset 21278 ef8a3a2a72f2
parent 14405 e7fff80005c1
child 23010 6dadb192ad81
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   315      *
   315      *
   316      * @exception IllegalBlockSizeException if this cipher is a block cipher,
   316      * @exception IllegalBlockSizeException if this cipher is a block cipher,
   317      * no padding has been requested (only in encryption mode), and the total
   317      * no padding has been requested (only in encryption mode), and the total
   318      * input length of the data processed by this cipher is not a multiple of
   318      * input length of the data processed by this cipher is not a multiple of
   319      * block size
   319      * block size
   320      * @exception BadPaddingException if decrypting and padding is choosen,
   320      * @exception BadPaddingException if decrypting and padding is chosen,
   321      * but the last input data does not have proper padding bytes.
   321      * but the last input data does not have proper padding bytes.
   322      */
   322      */
   323     protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen)
   323     protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen)
   324         throws IllegalBlockSizeException, BadPaddingException
   324         throws IllegalBlockSizeException, BadPaddingException
   325     {
   325     {
   356      * no padding has been requested (only in encryption mode), and the total
   356      * no padding has been requested (only in encryption mode), and the total
   357      * input length of the data processed by this cipher is not a multiple of
   357      * input length of the data processed by this cipher is not a multiple of
   358      * block size
   358      * block size
   359      * @exception ShortBufferException if the given output buffer is too small
   359      * @exception ShortBufferException if the given output buffer is too small
   360      * to hold the result
   360      * to hold the result
   361      * @exception BadPaddingException if decrypting and padding is choosen,
   361      * @exception BadPaddingException if decrypting and padding is chosen,
   362      * but the last input data does not have proper padding bytes.
   362      * but the last input data does not have proper padding bytes.
   363      */
   363      */
   364     protected int engineDoFinal(byte[] input, int inputOffset, int inputLen,
   364     protected int engineDoFinal(byte[] input, int inputOffset, int inputLen,
   365                                 byte[] output, int outputOffset)
   365                                 byte[] output, int outputOffset)
   366         throws ShortBufferException, IllegalBlockSizeException,
   366         throws ShortBufferException, IllegalBlockSizeException,