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/03/17 13:45:27 UTC

[commons-crypto] branch master updated: Comment empty block.

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 5644884  Comment empty block.
5644884 is described below

commit 5644884cd8363a28cc4351c0541a79299bf4e54c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Mar 17 09:45:21 2022 -0400

    Comment empty block.
---
 .../org/apache/commons/crypto/stream/PositionedCryptoInputStream.java | 4 ++--
 1 file changed, 2 insertions(+), 2 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 4555461..7387e90 100644
--- a/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
+++ b/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
@@ -291,9 +291,9 @@ public class PositionedCryptoInputStream extends CtrCryptoInputStream {
         final long counter = getCounter(position);
         CtrCryptoInputStream.calculateIV(getInitIV(), counter, iv);
         try {
-            state.getCryptoCipher().init(Cipher.DECRYPT_MODE, key,
-                    new IvParameterSpec(iv));
+            state.getCryptoCipher().init(Cipher.DECRYPT_MODE, key, new IvParameterSpec(iv));
         } catch (final GeneralSecurityException e) {
+            // Ignore
         }
         state.reset(false);
     }