From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- .../Library/BaseCryptLibNull/Pem/CryptPemNull.c | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 roms/edk2/CryptoPkg/Library/BaseCryptLibNull/Pem/CryptPemNull.c (limited to 'roms/edk2/CryptoPkg/Library/BaseCryptLibNull/Pem/CryptPemNull.c') diff --git a/roms/edk2/CryptoPkg/Library/BaseCryptLibNull/Pem/CryptPemNull.c b/roms/edk2/CryptoPkg/Library/BaseCryptLibNull/Pem/CryptPemNull.c new file mode 100644 index 000000000..4eeabd91a --- /dev/null +++ b/roms/edk2/CryptoPkg/Library/BaseCryptLibNull/Pem/CryptPemNull.c @@ -0,0 +1,38 @@ +/** @file + PEM (Privacy Enhanced Mail) Format Handler Wrapper Implementation which does + not provide real capabilities. + +Copyright (c) 2012, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include "InternalCryptLib.h" + +/** + Retrieve the RSA Private Key from the password-protected PEM key data. + + Return FALSE to indicate this interface is not supported. + + @param[in] PemData Pointer to the PEM-encoded key data to be retrieved. + @param[in] PemSize Size of the PEM key data in bytes. + @param[in] Password NULL-terminated passphrase used for encrypted PEM key data. + @param[out] RsaContext Pointer to new-generated RSA context which contain the retrieved + RSA private key component. Use RsaFree() function to free the + resource. + + @retval FALSE This interface is not supported. + +**/ +BOOLEAN +EFIAPI +RsaGetPrivateKeyFromPem ( + IN CONST UINT8 *PemData, + IN UINTN PemSize, + IN CONST CHAR8 *Password, + OUT VOID **RsaContext + ) +{ + ASSERT (FALSE); + return FALSE; +} -- cgit 1.2.3-korg