TianoCore EDK2 master
Loading...
Searching...
No Matches
CryptPkcs1OaepNull.c
Go to the documentation of this file.
1
11#include "InternalCryptLib.h"
12
35BOOLEAN
36EFIAPI
38 IN CONST UINT8 *PublicKey,
39 IN UINTN PublicKeySize,
40 IN UINT8 *InData,
41 IN UINTN InDataSize,
42 IN CONST UINT8 *PrngSeed OPTIONAL,
43 IN UINTN PrngSeedSize OPTIONAL,
44 OUT UINT8 **EncryptedData,
45 OUT UINTN *EncryptedDataSize
46 )
47{
48 ASSERT (FALSE);
49 return FALSE;
50}
51
85BOOLEAN
86EFIAPI
88 IN VOID *RsaContext,
89 IN UINT8 *InData,
90 IN UINTN InDataSize,
91 IN CONST UINT8 *PrngSeed OPTIONAL,
92 IN UINTN PrngSeedSize OPTIONAL,
93 IN UINT16 DigestLen OPTIONAL,
94 OUT UINT8 **EncryptedData,
95 OUT UINTN *EncryptedDataSize
96 )
97{
98 ASSERT (FALSE);
99 return FALSE;
100}
101
123BOOLEAN
124EFIAPI
126 IN CONST UINT8 *PrivateKey,
127 IN UINTN PrivateKeySize,
128 IN UINT8 *EncryptedData,
129 IN UINTN EncryptedDataSize,
130 OUT UINT8 **OutData,
131 OUT UINTN *OutDataSize
132 )
133{
134 ASSERT (FALSE);
135 return FALSE;
136}
137
165BOOLEAN
166EFIAPI
168 IN VOID *RsaContext,
169 IN UINT8 *EncryptedData,
170 IN UINTN EncryptedDataSize,
171 IN UINT16 DigestLen OPTIONAL,
172 OUT UINT8 **OutData,
173 OUT UINTN *OutDataSize
174 )
175{
176 ASSERT (FALSE);
177 return FALSE;
178}
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define FALSE
Definition: Base.h:307
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
BOOLEAN EFIAPI Pkcs1v2Encrypt(IN CONST UINT8 *PublicKey, IN UINTN PublicKeySize, IN UINT8 *InData, IN UINTN InDataSize, IN CONST UINT8 *PrngSeed OPTIONAL, IN UINTN PrngSeedSize OPTIONAL, OUT UINT8 **EncryptedData, OUT UINTN *EncryptedDataSize)
BOOLEAN EFIAPI RsaOaepEncrypt(IN VOID *RsaContext, IN UINT8 *InData, IN UINTN InDataSize, IN CONST UINT8 *PrngSeed OPTIONAL, IN UINTN PrngSeedSize OPTIONAL, IN UINT16 DigestLen OPTIONAL, OUT UINT8 **EncryptedData, OUT UINTN *EncryptedDataSize)
BOOLEAN EFIAPI RsaOaepDecrypt(IN VOID *RsaContext, IN UINT8 *EncryptedData, IN UINTN EncryptedDataSize, IN UINT16 DigestLen OPTIONAL, OUT UINT8 **OutData, OUT UINTN *OutDataSize)
BOOLEAN EFIAPI Pkcs1v2Decrypt(IN CONST UINT8 *PrivateKey, IN UINTN PrivateKeySize, IN UINT8 *EncryptedData, IN UINTN EncryptedDataSize, OUT UINT8 **OutData, OUT UINTN *OutDataSize)