boncey / Flickr4Java

Java API For Flickr. Fork of FlickrJ
BSD 2-Clause "Simplified" License
174 stars 155 forks source link

How to verify or Debug AES128GCM #689

Closed AhamedFayaz closed 1 year ago

AhamedFayaz commented 1 year ago

Hi,

I am working on SSL client(Mocana ssl). I got Bad Record MAC. Wireshark log:

Secure Sockets Layer TLSv1.2 Record Layer: Change Cipher Spec Protocol: Change Cipher Spec TLSv1.2 Record Layer: Handshake Protocol: Multiple Handshake Messages Content Type: Handshake (22) Version: TLS 1.2 (0x0303) Length: 40 Handshake Protocol: Hello Request Handshake Protocol: Hello Request Handshake Protocol: Finished Handshake Type: Finished (20) Length: 12 Verify Data

Secure Sockets Layer TLSv1.2 Record Layer: Alert (Level: Fatal, Description: Bad Record MAC) Content Type: Alert (21) Version: TLS 1.2 (0x0303) Length: 2 Alert Message


I thought that because of AES128GCM, NIST Special Publication 800-38D. I need guidance for how to verify or Debug that. I just check the return type that shows every thing is ok.

I have got the gcm code from https://github.com/BrianGladman/modes/blob/master/gcm.h

Thank you.