CryptPemNull.c 1.1 KB

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