TianoCore EDK2 master
|
#include "TestBaseCryptLib.h"
Go to the source code of this file.
Data Structures | |
struct | BLOCK_CIPHER_TEST_CONTEXT |
Typedefs | |
typedef UINTN(EFIAPI * | EFI_BLOCK_CIPHER_GET_CONTEXT_SIZE) (VOID) |
typedef BOOLEAN(EFIAPI * | EFI_BLOCK_CIPHER_INIT) (OUT VOID *BlockCipherContext, IN CONST UINT8 *Key, IN UINTN KeyLength) |
typedef BOOLEAN(EFIAPI * | EFI_BLOCK_CIPHER_ECB_ENCRYPT_DECRYPT) (IN VOID *BlockCipherContext, IN CONST UINT8 *Input, IN UINTN InputSize, OUT UINT8 *Output) |
typedef BOOLEAN(EFIAPI * | EFI_BLOCK_CIPHER_CBC_ENCRYPT_DECRYPT) (IN VOID *BlockCipherContext, IN CONST UINT8 *Input, IN UINTN InputSize, IN CONST UINT8 *Ivec, OUT UINT8 *Output) |
typedef BOOLEAN(EFIAPI * | EFI_BLOCK_CIPHER_RESET) (IN OUT VOID *BlockCipherContext) |
Functions | |
UNIT_TEST_STATUS EFIAPI | TestVerifyBLockCiperPreReq (UNIT_TEST_CONTEXT Context) |
VOID EFIAPI | TestVerifyBLockCiperCleanUp (UNIT_TEST_CONTEXT Context) |
UNIT_TEST_STATUS EFIAPI | TestVerifyBLockCiper (UNIT_TEST_CONTEXT Context) |
Application for Block Cipher Primitives Validation.
Copyright (c) 2010, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BlockCipherTests.c.
typedef BOOLEAN(EFIAPI * EFI_BLOCK_CIPHER_CBC_ENCRYPT_DECRYPT) (IN VOID *BlockCipherContext, IN CONST UINT8 *Input, IN UINTN InputSize, IN CONST UINT8 *Ivec, OUT UINT8 *Output) |
Definition at line 152 of file BlockCipherTests.c.
typedef BOOLEAN(EFIAPI * EFI_BLOCK_CIPHER_ECB_ENCRYPT_DECRYPT) (IN VOID *BlockCipherContext, IN CONST UINT8 *Input, IN UINTN InputSize, OUT UINT8 *Output) |
Definition at line 143 of file BlockCipherTests.c.
typedef UINTN(EFIAPI * EFI_BLOCK_CIPHER_GET_CONTEXT_SIZE) (VOID) |
Definition at line 129 of file BlockCipherTests.c.
typedef BOOLEAN(EFIAPI * EFI_BLOCK_CIPHER_INIT) (OUT VOID *BlockCipherContext, IN CONST UINT8 *Key, IN UINTN KeyLength) |
Definition at line 135 of file BlockCipherTests.c.
Definition at line 162 of file BlockCipherTests.c.
UNIT_TEST_STATUS EFIAPI TestVerifyBLockCiper | ( | UNIT_TEST_CONTEXT | Context | ) |
Definition at line 229 of file BlockCipherTests.c.
VOID EFIAPI TestVerifyBLockCiperCleanUp | ( | UNIT_TEST_CONTEXT | Context | ) |
Definition at line 215 of file BlockCipherTests.c.
UNIT_TEST_STATUS EFIAPI TestVerifyBLockCiperPreReq | ( | UNIT_TEST_CONTEXT | Context | ) |
Definition at line 196 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes128CbcCipher[] |
Definition at line 107 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes128CbcData[] |
Definition at line 94 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes128CbcIvec[] |
Definition at line 103 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes128CbcKey[] |
Definition at line 99 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes128EcbCipher[] |
Definition at line 64 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes128EcbData[] |
Definition at line 56 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes128EcbKey[] |
Definition at line 60 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes192EcbCipher[] |
Definition at line 77 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes192EcbData[] |
Definition at line 68 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes192EcbKey[] |
Definition at line 72 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes256EcbCipher[] |
Definition at line 90 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes256EcbData[] |
Definition at line 81 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Aes256EcbKey[] |
Definition at line 85 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Arc4Cipher[] |
Definition at line 124 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Arc4Data[] |
Definition at line 116 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 Arc4Key[] |
Definition at line 120 of file BlockCipherTests.c.
BLOCK_CIPHER_TEST_CONTEXT mAes128CbcTestCtx = { AesGetContextSize, AesInit, NULL, NULL, AesCbcEncrypt, AesCbcDecrypt, NULL, Aes128CbcKey, 128, Aes128CbcIvec, Aes128CbcData, sizeof (Aes128CbcData), Aes128CbcCipher, sizeof (Aes128CbcCipher) } |
Definition at line 192 of file BlockCipherTests.c.
TEST_DESC mBlockCipherTest[] |
Definition at line 276 of file BlockCipherTests.c.
UINTN mBlockCipherTestNum = ARRAY_SIZE (mBlockCipherTest) |
Definition at line 290 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 TdesCbc3Cipher[] |
Definition at line 47 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 TdesCbcData[] |
Definition at line 31 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED UINT8 TdesCbcIvec[] |
Definition at line 43 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 TdesCbcKey[] |
Definition at line 37 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 TdesEcb2Cipher[] |
Definition at line 27 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 TdesEcbCipher[] |
Definition at line 23 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 TdesEcbData[] |
Definition at line 14 of file BlockCipherTests.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 TdesEcbKey[] |
Definition at line 18 of file BlockCipherTests.c.