TestApp: new zero length message GCM test vector added
@@ -865,6 +865,34 @@ static uint8_t T21[] = {
0x4F
};
+/*
+ * Test Case 22 -- No plaintext
+ */
+static uint8_t K22[] = {
+ 0x76, 0x80, 0xc5, 0xd3, 0xca, 0x61, 0x54, 0x75,
+ 0x8e, 0x51, 0x0f, 0x4d, 0x25, 0xb9, 0x88, 0x20
+};
+
+static uint8_t IV22[] = {
+ 0xf8, 0xf1, 0x05, 0xf9, 0xc3, 0xdf, 0x49, 0x65,
+ 0x78, 0x03, 0x21, 0xf8
+};
+
+static uint8_t A22[] = {
+ 0xc9, 0x4c, 0x41, 0x01, 0x94, 0xc7, 0x65, 0xe3,
+ 0xdc, 0xc7, 0x96, 0x43, 0x79, 0x75, 0x8e, 0xd3
+};
+
+#define A22_len sizeof(A22)
+#define P22 NULL
+#define C22 NULL
+#define P22_len 0
+
+static uint8_t T22[] = {
+ 0x94, 0xdc, 0xa8, 0xed, 0xfc, 0xf9, 0x0b, 0xb7,
+ 0x4b, 0x15, 0x3c, 0x8d, 0x48, 0xa1, 0x79, 0x30
+};
+
static const struct gcm_ctr_vector gcm_vectors[] = {
/*
* field order {K, Klen, IV, IVlen, A, Alen, P, Plen, C, T, Tlen};
@@ -891,6 +919,7 @@ static const struct gcm_ctr_vector gcm_vectors[] = {
extra_vector(19),
extra_vector(20),
vector(21),
+ extra_vector(22),
};
typedef void (*gcm_enc_dec_fn_t)(const struct gcm_key_data *,
