Skip to content

Commit 71a1a0b

Browse files
committed
Added non-zero AAD for AES_GCM interop test
1 parent 1fbd72f commit 71a1a0b

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/wolfssl-master-compatibility.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: wolfPKCS11 interoperability tests against wolfSSL upstream
22

33
on:
4-
54
workflow_call:
65
inputs:
76
config:

tests/testdata.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,14 +434,17 @@ static const unsigned char aes_gcm_plain[16] = {
434434
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
435435
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
436436
};
437-
static const unsigned char aes_gcm_aad[0] = { };
437+
static const unsigned char aes_gcm_aad[] = {
438+
0x77, 0x6F, 0x6C, 0x66, 0x50, 0x4B, 0x43, 0x53,
439+
0x31, 0x31, 0x2D, 0x41, 0x41, 0x44
440+
};
438441
static const unsigned char aes_gcm_cipher[16] = {
439442
0x03, 0x88, 0xDA, 0xCE, 0x60, 0xB6, 0xA3, 0x92,
440443
0xF3, 0x28, 0xC2, 0xB9, 0x71, 0xB2, 0xFE, 0x78
441444
};
442445
static const unsigned char aes_gcm_tag[16] = {
443-
0xAB, 0x6E, 0x47, 0xD4, 0x2C, 0xEC, 0x13, 0xBD,
444-
0xF5, 0x3A, 0x67, 0xB2, 0x12, 0x57, 0xBD, 0xDF
446+
0x19, 0x0F, 0x28, 0xEF, 0x98, 0x55, 0x46, 0xBE,
447+
0x30, 0x7F, 0xF8, 0x6C, 0x76, 0x6C, 0x47, 0x81
445448
};
446449

447450
static const unsigned char aes_cbc_key[16] = {

0 commit comments

Comments
 (0)