TianoCore EDK2 master
|
#include "InternalCryptLib.h"
Go to the source code of this file.
Functions | |
BOOLEAN EFIAPI | RsaGetKey (IN OUT VOID *RsaContext, IN RSA_KEY_TAG KeyTag, OUT UINT8 *BigNumber, IN OUT UINTN *BnSize) |
BOOLEAN EFIAPI | RsaGenerateKey (IN OUT VOID *RsaContext, IN UINTN ModulusLength, IN CONST UINT8 *PublicExponent, IN UINTN PublicExponentSize) |
BOOLEAN EFIAPI | RsaCheckKey (IN VOID *RsaContext) |
BOOLEAN EFIAPI | RsaPkcs1Sign (IN VOID *RsaContext, IN CONST UINT8 *MessageHash, IN UINTN HashSize, OUT UINT8 *Signature, IN OUT UINTN *SigSize) |
RSA Asymmetric Cipher Wrapper Implementation over MbedTLS.
This file does not provide real capabilities for following APIs in RSA handling: 1) RsaGetKey 2) RsaGenerateKey 3) RsaCheckKey 4) RsaPkcs1Sign
Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CryptRsaExtNull.c.
BOOLEAN EFIAPI RsaCheckKey | ( | IN VOID * | RsaContext | ) |
Validates key components of RSA context.
Return FALSE to indicate this interface is not supported.
[in] | RsaContext | Pointer to RSA context to check. |
FALSE | This interface is not supported. |
Definition at line 82 of file CryptRsaExtNull.c.
BOOLEAN EFIAPI RsaGenerateKey | ( | IN OUT VOID * | RsaContext, |
IN UINTN | ModulusLength, | ||
IN CONST UINT8 * | PublicExponent, | ||
IN UINTN | PublicExponentSize | ||
) |
Generates RSA key components.
Return FALSE to indicate this interface is not supported.
[in,out] | RsaContext | Pointer to RSA context being set. |
[in] | ModulusLength | Length of RSA modulus N in bits. |
[in] | PublicExponent | Pointer to RSA public exponent. |
[in] | PublicExponentSize | Size of RSA public exponent buffer in bytes. |
FALSE | This interface is not supported. |
Definition at line 59 of file CryptRsaExtNull.c.
BOOLEAN EFIAPI RsaGetKey | ( | IN OUT VOID * | RsaContext, |
IN RSA_KEY_TAG | KeyTag, | ||
OUT UINT8 * | BigNumber, | ||
IN OUT UINTN * | BnSize | ||
) |
Gets the tag-designated RSA key component from the established RSA context.
Return FALSE to indicate this interface is not supported.
[in,out] | RsaContext | Pointer to RSA context being set. |
[in] | KeyTag | Tag of RSA key component being set. |
[out] | BigNumber | Pointer to octet integer buffer. |
[in,out] | BnSize | On input, the size of big number buffer in bytes. On output, the size of data returned in big number buffer in bytes. |
FALSE | This interface is not supported. |
Definition at line 33 of file CryptRsaExtNull.c.
BOOLEAN EFIAPI RsaPkcs1Sign | ( | IN VOID * | RsaContext, |
IN CONST UINT8 * | MessageHash, | ||
IN UINTN | HashSize, | ||
OUT UINT8 * | Signature, | ||
IN OUT UINTN * | SigSize | ||
) |
Carries out the RSA-SSA signature generation with EMSA-PKCS1-v1_5 encoding scheme.
Return FALSE to indicate this interface is not supported.
[in] | RsaContext | Pointer to RSA context for signature generation. |
[in] | MessageHash | Pointer to octet message hash to be signed. |
[in] | HashSize | Size of the message hash in bytes. |
[out] | Signature | Pointer to buffer to receive RSA PKCS1-v1_5 signature. |
[in,out] | SigSize | On input, the size of Signature buffer in bytes. On output, the size of data returned in Signature buffer in bytes. |
FALSE | This interface is not supported. |
Definition at line 107 of file CryptRsaExtNull.c.