[Internet]JDK-8221218 - Insufficient buffer remaining for AEAD cipher fragment (2). Needs to be more than tag size (16)

Thomas Lußnig openjdk at suche.org
Tue Apr 26 14:36:06 UTC 2022


Hi,

i changed the logging and now better get the Location of the error

javax.crypto.BadPaddingException: Insufficient buffer remaining for AEAD 
cipher fragment (2). Needs to be more than tag size (16)
         at 
java.base/sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.decrypt(SSLCipher.java:1898)
         at 
java.base/sun.security.ssl.SSLEngineInputRecord.decodeInputRecord(SSLEngineInputRecord.java:239)
         at 
java.base/sun.security.ssl.SSLEngineInputRecord.decode(SSLEngineInputRecord.java:196)
         at 
java.base/sun.security.ssl.SSLEngineInputRecord.decode(SSLEngineInputRecord.java:159)
         at 
java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
         at 
java.base/sun.security.ssl.SSLEngineImpl.decode(SSLEngineImpl.java:736)
         at 
java.base/sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:691)
         at 
java.base/sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:506)
         at 
java.base/sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:482)
         at java.base/javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:679)
         at 
org.eclipse.jetty.io.ssl.SslConnection.unwrap(SslConnection.java:406)


Gruß Thomas




More information about the security-dev mailing list