Only authenticate GCM if auth key available

This commit is contained in:
Gunnar Skjold
2024-01-26 19:21:27 +01:00
parent 8a59fcb89a
commit e575ab755c
2 changed files with 20 additions and 22 deletions

View File

@@ -9,12 +9,6 @@
#define GCM_DECRYPT_FAILED -52
#define GCM_ENCRYPTION_KEY_FAILED -53
typedef struct GCMSizeDef {
uint8_t flag;
uint16_t format;
} __attribute__((packed)) GCMSizeDef;
class GCMParser {
public:
GCMParser(uint8_t *encryption_key, uint8_t *authentication_key);