]>
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 | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT 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 | |
33 | BOOLEAN\r | |
34 | EFIAPI\r | |
35 | RsaGetPrivateKeyFromPem (\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 |