TianoCore EDK2 master
|
#include "TestBaseCryptLib.h"
Go to the source code of this file.
Functions | |
UNIT_TEST_STATUS EFIAPI | TestVerifyHkdfSha256 (IN UNIT_TEST_CONTEXT Context) |
UNIT_TEST_STATUS EFIAPI | TestVerifyHkdfSha384 (IN UNIT_TEST_CONTEXT Context) |
Variables | |
UINT8 | mHkdfSha256Ikm [22] |
UINT8 | mHkdfSha256Salt [13] |
UINT8 | mHkdfSha256Info [10] |
UINT8 | mHkdfSha256Prk [32] |
UINT8 | mHkdfSha256Okm [42] |
UINT8 | mHkdfSha384Ikm [16] |
UINT8 | mHkdfSha384Salt [16] |
UINT8 | mHkdfSha384Info [20] |
UINT8 | mHkdfSha384Prk [48] |
UINT8 | mHkdfSha384Okm [64] |
TEST_DESC | mHkdfTest [] |
UINTN | mHkdfTestNum = ARRAY_SIZE (mHkdfTest) |
Application for Hkdf Primitives Validation.
Copyright (c) 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file HkdfTests.c.
UNIT_TEST_STATUS EFIAPI TestVerifyHkdfSha256 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 85 of file HkdfTests.c.
UNIT_TEST_STATUS EFIAPI TestVerifyHkdfSha384 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 141 of file HkdfTests.c.
UINT8 mHkdfSha256Ikm[22] |
HKDF KAT from RFC 5869 Appendix A. Test Vectors https://www.rfc-editor.org/rfc/rfc5869.html
Definition at line 15 of file HkdfTests.c.
UINT8 mHkdfSha256Info[10] |
Definition at line 26 of file HkdfTests.c.
UINT8 mHkdfSha256Okm[42] |
Definition at line 37 of file HkdfTests.c.
UINT8 mHkdfSha256Prk[32] |
Definition at line 30 of file HkdfTests.c.
UINT8 mHkdfSha256Salt[13] |
Definition at line 21 of file HkdfTests.c.
UINT8 mHkdfSha384Ikm[16] |
This Hkdf-Sha384 test vector is form Project Wycheproof developed and maintained by members of Google Security Team. https://github.com/google/wycheproof/blob/master/testvectors/hkdf_sha384_test.json
Definition at line 50 of file HkdfTests.c.
UINT8 mHkdfSha384Info[20] |
Definition at line 60 of file HkdfTests.c.
UINT8 mHkdfSha384Okm[64] |
Definition at line 73 of file HkdfTests.c.
UINT8 mHkdfSha384Prk[48] |
Definition at line 65 of file HkdfTests.c.
UINT8 mHkdfSha384Salt[16] |
Definition at line 55 of file HkdfTests.c.
TEST_DESC mHkdfTest[] |
UINTN mHkdfTestNum = ARRAY_SIZE (mHkdfTest) |
Definition at line 202 of file HkdfTests.c.