You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/08/20 18:44:19 UTC

[commons-crypto] branch master updated: Private method PositionedCryptoInputStream.resetCipher(CipherState, long, byte[]) does not need to throw IOException

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git


The following commit(s) were added to refs/heads/master by this push:
     new 1710976  Private method PositionedCryptoInputStream.resetCipher(CipherState, long, byte[]) does not need to throw IOException
1710976 is described below

commit 1710976a6eaaab38d14309a70dec5e7c987aced8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Aug 20 14:44:14 2022 -0400

    Private method PositionedCryptoInputStream.resetCipher(CipherState,
    long, byte[]) does not need to throw IOException
---
 .../org/apache/commons/crypto/stream/PositionedCryptoInputStream.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java b/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
index 7387e90..14b37a6 100644
--- a/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
+++ b/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
@@ -284,10 +284,8 @@ public class PositionedCryptoInputStream extends CtrCryptoInputStream {
      * @param state the CipherState instance.
      * @param position the offset from the start of the stream.
      * @param iv the iv.
-     * @throws IOException if an I/O error occurs.
      */
-    private void resetCipher(final CipherState state, final long position, final byte[] iv)
-            throws IOException {
+    private void resetCipher(final CipherState state, final long position, final byte[] iv) {
         final long counter = getCounter(position);
         CtrCryptoInputStream.calculateIV(getInitIV(), counter, iv);
         try {