TianoCore EDK2 master
Loading...
Searching...
No Matches
AeadAesGcmTests.c File Reference
#include "TestBaseCryptLib.h"

Go to the source code of this file.

Functions

UNIT_TEST_STATUS EFIAPI TestVerifyAeadAesGcm (IN UNIT_TEST_CONTEXT Context)
 

Variables

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 gcm_key []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 gcm_iv []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 gcm_pt []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 gcm_aad []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 gcm_ct []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 gcm_tag []
 
TEST_DESC mAeadAesGcmTest []
 
UINTN mAeadAesGcmTestNum = ARRAY_SIZE (mAeadAesGcmTest)
 

Detailed Description

Application for Authenticated Encryption with Associated Data (AEAD) Validation.

Copyright (c) 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file AeadAesGcmTests.c.

Function Documentation

◆ TestVerifyAeadAesGcm()

UNIT_TEST_STATUS EFIAPI TestVerifyAeadAesGcm ( IN UNIT_TEST_CONTEXT  Context)

Definition at line 45 of file AeadAesGcmTests.c.

Variable Documentation

◆ gcm_aad

Initial value:
= {
0x4d, 0x23, 0xc3, 0xce, 0xc3, 0x34, 0xb4, 0x9b, 0xdb, 0x37, 0x0c, 0x43,
0x7f, 0xec, 0x78, 0xde
}

Definition at line 28 of file AeadAesGcmTests.c.

◆ gcm_ct

Initial value:
= {
0xf7, 0x26, 0x44, 0x13, 0xa8, 0x4c, 0x0e, 0x7c, 0xd5, 0x36, 0x86, 0x7e,
0xb9, 0xf2, 0x17, 0x36
}

Definition at line 33 of file AeadAesGcmTests.c.

◆ gcm_iv

Initial value:
= {
0x99, 0xaa, 0x3e, 0x68, 0xed, 0x81, 0x73, 0xa0, 0xee, 0xd0, 0x66, 0x84
}

Definition at line 19 of file AeadAesGcmTests.c.

◆ gcm_key

Initial value:
= {
0xee, 0xbc, 0x1f, 0x57, 0x48, 0x7f, 0x51, 0x92, 0x1c, 0x04, 0x65, 0x66,
0x5f, 0x8a, 0xe6, 0xd1, 0x65, 0x8b, 0xb2, 0x6d, 0xe6, 0xf8, 0xa0, 0x69,
0xa3, 0x52, 0x02, 0x93, 0xa5, 0x72, 0x07, 0x8f
}

Definition at line 13 of file AeadAesGcmTests.c.

◆ gcm_pt

Initial value:
= {
0xf5, 0x6e, 0x87, 0x05, 0x5b, 0xc3, 0x2d, 0x0e, 0xeb, 0x31, 0xb2, 0xea,
0xcc, 0x2b, 0xf2, 0xa5
}

Definition at line 23 of file AeadAesGcmTests.c.

◆ gcm_tag

Initial value:
= {
0x67, 0xba, 0x05, 0x10, 0x26, 0x2a, 0xe4, 0x87, 0xd7, 0x37, 0xee, 0x62,
0x98, 0xf7, 0x7e, 0x0c
}

Definition at line 38 of file AeadAesGcmTests.c.

◆ mAeadAesGcmTest

TEST_DESC mAeadAesGcmTest[]
Initial value:
= {
{ "TestVerifyAeadAesGcm()", "CryptoPkg.BaseCryptLib.AeadAesGcm", TestVerifyAeadAesGcm, NULL, NULL, NULL },
}
#define NULL
Definition: Base.h:319

Definition at line 105 of file AeadAesGcmTests.c.

◆ mAeadAesGcmTestNum

UINTN mAeadAesGcmTestNum = ARRAY_SIZE (mAeadAesGcmTest)

Definition at line 112 of file AeadAesGcmTests.c.