-1

As the title says, while sniffing WPA protected packet in my WiFi network using Wireshark, if I decrypt them with Wireshark tool, I can analyze them, but I found that there are always 12 byte of overhead that lack in the crypted packet and haven't any tag in Wireshark menu. Thanks

1 Answers1

1

if you are saying the decrypted packed is smaller than the encrypted packed that is probably padding... which is added to make a whole block so it can perform whole block operations on the cipher and be used as a sanity check on decrypt... ie. assume 16 byte blocksize (aes) if you have a payload that is len(payload) % 16 = 4 then you will need to add 12 bytes of padding...

in PKCS7 padding you would add the octet 0x0c 12 times before you encrypt it, and strip the padding when you decrypt it.

Grady Player
  • 14,399
  • 2
  • 48
  • 76