2 RSA Asymmetric Cipher Wrapper Null Implementation.
4 This file does not provide real capabilities for following APIs in RSA handling:
10 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
11 SPDX-License-Identifier: BSD-2-Clause-Patent
15 #include "InternalCryptLib.h"
18 Gets the tag-designated RSA key component from the established RSA context.
20 Return FALSE to indicate this interface is not supported.
22 @param[in, out] RsaContext Pointer to RSA context being set.
23 @param[in] KeyTag Tag of RSA key component being set.
24 @param[out] BigNumber Pointer to octet integer buffer.
25 @param[in, out] BnSize On input, the size of big number buffer in bytes.
26 On output, the size of data returned in big number buffer in bytes.
28 @retval FALSE This interface is not supported.
34 IN OUT VOID
*RsaContext
,
35 IN RSA_KEY_TAG KeyTag
,
45 Generates RSA key components.
47 Return FALSE to indicate this interface is not supported.
49 @param[in, out] RsaContext Pointer to RSA context being set.
50 @param[in] ModulusLength Length of RSA modulus N in bits.
51 @param[in] PublicExponent Pointer to RSA public exponent.
52 @param[in] PublicExponentSize Size of RSA public exponent buffer in bytes.
54 @retval FALSE This interface is not supported.
60 IN OUT VOID
*RsaContext
,
61 IN UINTN ModulusLength
,
62 IN CONST UINT8
*PublicExponent
,
63 IN UINTN PublicExponentSize
71 Validates key components of RSA context.
73 Return FALSE to indicate this interface is not supported.
75 @param[in] RsaContext Pointer to RSA context to check.
77 @retval FALSE This interface is not supported.
91 Carries out the RSA-SSA signature generation with EMSA-PKCS1-v1_5 encoding scheme.
93 Return FALSE to indicate this interface is not supported.
95 @param[in] RsaContext Pointer to RSA context for signature generation.
96 @param[in] MessageHash Pointer to octet message hash to be signed.
97 @param[in] HashSize Size of the message hash in bytes.
98 @param[out] Signature Pointer to buffer to receive RSA PKCS1-v1_5 signature.
99 @param[in, out] SigSize On input, the size of Signature buffer in bytes.
100 On output, the size of data returned in Signature buffer in bytes.
102 @retval FALSE This interface is not supported.
109 IN CONST UINT8
*MessageHash
,
111 OUT UINT8
*Signature
,
112 IN OUT UINTN
*SigSize