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

xueleifan(XueleiFan) xueleifan at tencent.com
Fri May 13 17:34:35 UTC 2022


Would you mind send the debug log information, with System property javax.net.debug=all?

Thanks,
Xuelei

> On May 13, 2022, at 8:27 AM, xueleifan(XueleiFan) <xueleifan at tencent.com> wrote:
> 
> Hm, I get a hint about the issue now.  Did SunJSSE provider used in both client and server?
> 
> Xuelei
> 
>> On Apr 26, 2022, at 7:36 AM, Thomas Lußnig <openjdk at suche.org> wrote:
>> 
>> 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