From 10500fddb30bb286c9b7008b2796dce1eb0b3bce Mon Sep 17 00:00:00 2001 From: Tony Washer Date: Wed, 26 Aug 2026 08:19:26 +0100 Subject: [PATCH] Allow Kangaroo doFinal after doOutput --- .../main/java/org/bouncycastle/crypto/digests/Kangaroo.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/src/main/java/org/bouncycastle/crypto/digests/Kangaroo.java b/core/src/main/java/org/bouncycastle/crypto/digests/Kangaroo.java index a4033c5105..68a707a061 100644 --- a/core/src/main/java/org/bouncycastle/crypto/digests/Kangaroo.java +++ b/core/src/main/java/org/bouncycastle/crypto/digests/Kangaroo.java @@ -312,12 +312,6 @@ public int doFinal(final byte[] pOut, final int pOutOffset, final int pOutLen) { - /* Check that we are not already outputting */ - if (squeezing) - { - throw new IllegalStateException("Already outputting"); - } - /* Build the required output */ final int length = doOutput(pOut, pOutOffset, pOutLen);