libsrtp icon indicating copy to clipboard operation
libsrtp copied to clipboard

AES GCM mode using wrong SALT size

Open jfigus opened this issue 12 years ago • 1 comments

The Master SALT for GCM mode should be 96 bits. Currently the GCM mode uses the same SALT_SIZE directive as ICM mode, which is set to a value of 14 (112 bits). As a result, the values derived from the KDF are wrong. Additionally, applications that use GCM mode are required to provide 30 bytes of key/salt material, where only 28 bytes should be required.

jfigus avatar Apr 07 '14 17:04 jfigus

The fix has been committed to master

jfigus avatar Apr 08 '14 13:04 jfigus