]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pem/CryptPemNull.c
Add interfaces to several library instances of BaseCryptLib.
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLibRuntimeCryptProtocol / Pem / CryptPemNull.c
CommitLineData
532616bb 1/** @file\r
2 PEM (Privacy Enhanced Mail) Format Handler Wrapper Implementation which does\r
3 not provide real capabilities.\r
4\r
5Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
6This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#include "InternalCryptLib.h"\r
17\r
18/**\r
19 Retrieve the RSA Private Key from the password-protected PEM key data.\r
20\r
21 Return FALSE to indicate this interface is not supported.\r
22\r
23 @param[in] PemData Pointer to the PEM-encoded key data to be retrieved.\r
24 @param[in] PemSize Size of the PEM key data in bytes.\r
25 @param[in] Password NULL-terminated passphrase used for encrypted PEM key data.\r
26 @param[out] RsaContext Pointer to new-generated RSA context which contain the retrieved\r
27 RSA private key component. Use RsaFree() function to free the\r
28 resource.\r
29\r
30 @retval FALSE This interface is not supported.\r
31\r
32**/\r
33BOOLEAN\r
34EFIAPI\r
35RsaGetPrivateKeyFromPem (\r
36 IN CONST UINT8 *PemData,\r
37 IN UINTN PemSize,\r
38 IN CONST CHAR8 *Password,\r
39 OUT VOID **RsaContext\r
40 )\r
41{\r
42 ASSERT (FALSE);\r
43 return FALSE;\r
44}\r