]>
Commit | Line | Data |
---|---|---|
532616bb | 1 | /** @file\r |
2 | PEM (Privacy Enhanced Mail) Format Handler Wrapper Implementation which does\r | |
3 | not provide real capabilities.\r | |
4 | \r | |
5 | Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r | |
2009f6b4 | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
532616bb | 7 | \r |
8 | **/\r | |
9 | \r | |
10 | #include "InternalCryptLib.h"\r | |
11 | \r | |
12 | /**\r | |
13 | Retrieve the RSA Private Key from the password-protected PEM key data.\r | |
14 | \r | |
15 | Return FALSE to indicate this interface is not supported.\r | |
16 | \r | |
17 | @param[in] PemData Pointer to the PEM-encoded key data to be retrieved.\r | |
18 | @param[in] PemSize Size of the PEM key data in bytes.\r | |
19 | @param[in] Password NULL-terminated passphrase used for encrypted PEM key data.\r | |
20 | @param[out] RsaContext Pointer to new-generated RSA context which contain the retrieved\r | |
21 | RSA private key component. Use RsaFree() function to free the\r | |
22 | resource.\r | |
23 | \r | |
24 | @retval FALSE This interface is not supported.\r | |
25 | \r | |
26 | **/\r | |
27 | BOOLEAN\r | |
28 | EFIAPI\r | |
29 | RsaGetPrivateKeyFromPem (\r | |
30 | IN CONST UINT8 *PemData,\r | |
31 | IN UINTN PemSize,\r | |
32 | IN CONST CHAR8 *Password,\r | |
33 | OUT VOID **RsaContext\r | |
34 | )\r | |
35 | {\r | |
36 | ASSERT (FALSE);\r | |
37 | return FALSE;\r | |
38 | }\r |