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