This commit resolves issue #46. The GCM mode was using the wrong master SALT length. The master SALT should be 96 bits instead of 112 bits. Note, GCM mode uses the legacy CTR mode for the KDF. The legagacy CTR mode cipher implementations assume a 112 bit SALT. Changes to the cipher abstraction layer API are required to provide the ability to specify the SALT length. For now this commit modifies the SRTP layer to ensure the SALT is zero-appended before initializing the KDF. This commit also provides public definitions for the GCM cipher suite master key sizes to avoid confusion for application developers.

This commit is contained in:
jfigus authored and Travis Cross committed 2014-04-08 15:25:39 +00:00
1 parent 7bc92a11af
commit a31491d5b6
8 files changed
+65 -43

No files matched your search

+1
View File
@@ -47,6 +47,7 @@
#define AES_GCM_OSSL_H
#include "cipher.h"
#include "srtp.h"
#include <openssl/evp.h>
#include <openssl/aes.h>