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

Go to the source code of this file.

Functions

UNIT_TEST_STATUS EFIAPI TestVerifyPkcs5Pbkdf2 (IN UNIT_TEST_CONTEXT Context)
 

Variables

GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 * Password = "password"
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN PassLen = 8
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 * Salt = "salt"
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN SaltLen = 4
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINTN Count = 2
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINTN KeyLen = 20
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 DerivedKey []
 
TEST_DESC mPkcs5Test []
 
UINTN mPkcs5TestNum = ARRAY_SIZE (mPkcs5Test)
 

Detailed Description

Application for PKCS#5 PBKDF2 Function Validation.

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

Definition in file Pkcs5Pbkdf2Tests.c.

Function Documentation

◆ TestVerifyPkcs5Pbkdf2()

UNIT_TEST_STATUS EFIAPI TestVerifyPkcs5Pbkdf2 ( IN UNIT_TEST_CONTEXT  Context)

Definition at line 28 of file Pkcs5Pbkdf2Tests.c.

Variable Documentation

◆ Count

Definition at line 18 of file Pkcs5Pbkdf2Tests.c.

◆ DerivedKey

Initial value:
= {
0xea, 0x6c, 0x01, 0x4d, 0xc7, 0x2d, 0x6f, 0x8c, 0xcd, 0x1e, 0xd9, 0x2a, 0xce, 0x1d, 0x41, 0xf0,
0xd8, 0xde, 0x89, 0x57
}

Definition at line 20 of file Pkcs5Pbkdf2Tests.c.

◆ KeyLen

Definition at line 19 of file Pkcs5Pbkdf2Tests.c.

◆ mPkcs5Test

TEST_DESC mPkcs5Test[]
Initial value:
= {
{ "TestVerifyPkcs5Pbkdf2()", "CryptoPkg.BaseCryptLib.Pkcs5", TestVerifyPkcs5Pbkdf2, NULL, NULL, NULL },
}
#define NULL
Definition: Base.h:319

Definition at line 65 of file Pkcs5Pbkdf2Tests.c.

◆ mPkcs5TestNum

UINTN mPkcs5TestNum = ARRAY_SIZE (mPkcs5Test)

Definition at line 72 of file Pkcs5Pbkdf2Tests.c.

◆ PassLen

Definition at line 15 of file Pkcs5Pbkdf2Tests.c.

◆ Password

GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8* Password = "password"

Definition at line 14 of file Pkcs5Pbkdf2Tests.c.

◆ Salt

GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8* Salt = "salt"

Definition at line 16 of file Pkcs5Pbkdf2Tests.c.

◆ SaltLen

Definition at line 17 of file Pkcs5Pbkdf2Tests.c.