mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
Add support for 16-byte auth tag for AES GCM mode.
This commit is contained in:
1 parent
b9da5149e2
commit
024162cfc9
15 files changed
+275
-39
No files matched your search
@@ -108,7 +108,7 @@ cipher_type_test(const cipher_type_t *ct, const cipher_test_case_t *test_data) {
|
||||
*/
|
||||
while (test_case != NULL) {
|
||||
/* allocate cipher */
|
||||
status = cipher_type_alloc(ct, &c, test_case->key_length_octets);
|
||||
status = cipher_type_alloc(ct, &c, test_case->key_length_octets, test_case->tag_length_octets);
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
@@ -307,7 +307,7 @@ cipher_type_test(const cipher_type_t *ct, const cipher_test_case_t *test_data) {
|
||||
|
||||
/* allocate cipher, using paramaters from the first test case */
|
||||
test_case = test_data;
|
||||
status = cipher_type_alloc(ct, &c, test_case->key_length_octets);
|
||||
status = cipher_type_alloc(ct, &c, test_case->key_length_octets, test_case->tag_length_octets);
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
|
||||
Reference in new issue
Block a user