java.lang.NegativeArraySizeException

Coderanch | Richard Tookey | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GCM & CCM example for BouncyCastle

    Coderanch | 5 years ago | Richard Tookey
    java.lang.NegativeArraySizeException

    Root Cause Analysis

    1. java.lang.NegativeArraySizeException

      No message provided

      at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal()
    2. Bouncy Castle Provider
      BaseBlockCipher.engineDoFinal
      1. org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
      1 frame
    3. Android Platform
      CipherInputStream.close
      1. javax.crypto.Cipher.doFinal(Cipher.java:1969)
      2. javax.crypto.CipherInputStream.close(CipherInputStream.java:299)
      2 frames