TianoCore EDK2 master
Loading...
Searching...
No Matches
CryptEcNull.c
Go to the documentation of this file.
1
10#include <Library/DebugLib.h>
11
23VOID *
24EFIAPI
26 IN UINTN CryptoNid
27 )
28{
29 ASSERT (FALSE);
30 return NULL;
31}
32
48BOOLEAN
49EFIAPI
51 IN CONST VOID *EcGroup,
52 OUT VOID *BnPrime,
53 OUT VOID *BnA,
54 OUT VOID *BnB,
55 IN VOID *BnCtx
56 )
57{
58 ASSERT (FALSE);
59 return FALSE;
60}
61
74BOOLEAN
75EFIAPI
77 IN VOID *EcGroup,
78 OUT VOID *BnOrder
79 )
80{
81 ASSERT (FALSE);
82 return FALSE;
83}
84
90VOID
91EFIAPI
93 IN VOID *EcGroup
94 )
95{
96 ASSERT (FALSE);
97}
98
108VOID *
109EFIAPI
111 IN CONST VOID *EcGroup
112 )
113{
114 ASSERT (FALSE);
115 return NULL;
116}
117
124VOID
125EFIAPI
127 IN VOID *EcPoint,
128 IN BOOLEAN Clear
129 )
130{
131 ASSERT (FALSE);
132}
133
149BOOLEAN
150EFIAPI
152 IN CONST VOID *EcGroup,
153 IN CONST VOID *EcPoint,
154 OUT VOID *BnX,
155 OUT VOID *BnY,
156 IN VOID *BnCtx
157 )
158{
159 ASSERT (FALSE);
160 return FALSE;
161}
162
175BOOLEAN
176EFIAPI
178 IN CONST VOID *EcGroup,
179 IN VOID *EcPoint,
180 IN CONST VOID *BnX,
181 IN CONST VOID *BnY,
182 IN VOID *BnCtx
183 )
184{
185 ASSERT (FALSE);
186 return FALSE;
187}
188
202BOOLEAN
203EFIAPI
205 IN CONST VOID *EcGroup,
206 OUT VOID *EcPointResult,
207 IN CONST VOID *EcPointA,
208 IN CONST VOID *EcPointB,
209 IN VOID *BnCtx
210 )
211{
212 ASSERT (FALSE);
213 return FALSE;
214}
215
229BOOLEAN
230EFIAPI
232 IN CONST VOID *EcGroup,
233 OUT VOID *EcPointResult,
234 IN CONST VOID *EcPoint,
235 IN CONST VOID *BnPScalar,
236 IN VOID *BnCtx
237 )
238{
239 ASSERT (FALSE);
240 return FALSE;
241}
242
253BOOLEAN
254EFIAPI
256 IN CONST VOID *EcGroup,
257 IN OUT VOID *EcPoint,
258 IN VOID *BnCtx
259 )
260{
261 ASSERT (FALSE);
262 return FALSE;
263}
264
275BOOLEAN
276EFIAPI
278 IN CONST VOID *EcGroup,
279 IN CONST VOID *EcPoint,
280 IN VOID *BnCtx
281 )
282{
283 ASSERT (FALSE);
284 return FALSE;
285}
286
296BOOLEAN
297EFIAPI
299 IN CONST VOID *EcGroup,
300 IN CONST VOID *EcPoint
301 )
302{
303 ASSERT (FALSE);
304 return FALSE;
305}
306
318BOOLEAN
319EFIAPI
321 IN CONST VOID *EcGroup,
322 IN CONST VOID *EcPointA,
323 IN CONST VOID *EcPointB,
324 IN VOID *BnCtx
325 )
326{
327 ASSERT (FALSE);
328 return FALSE;
329}
330
348BOOLEAN
349EFIAPI
351 IN CONST VOID *EcGroup,
352 IN VOID *EcPoint,
353 IN CONST VOID *BnX,
354 IN UINT8 YBit,
355 IN VOID *BnCtx
356 )
357{
358 ASSERT (FALSE);
359 return FALSE;
360}
361
370VOID *
371EFIAPI
373 IN UINTN Nid
374 )
375{
376 ASSERT (FALSE);
377 return NULL;
378}
379
385VOID
386EFIAPI
388 IN VOID *EcContext
389 )
390{
391 ASSERT (FALSE);
392}
393
420BOOLEAN
421EFIAPI
423 IN OUT VOID *EcContext,
424 OUT UINT8 *PublicKey,
425 IN OUT UINTN *PublicKeySize
426 )
427{
428 ASSERT (FALSE);
429 return FALSE;
430}
431
446BOOLEAN
447EFIAPI
449 IN OUT VOID *EcContext,
450 OUT UINT8 *PublicKey,
451 IN OUT UINTN *PublicKeySize
452 )
453{
454 ASSERT (FALSE);
455 return FALSE;
456}
457
483BOOLEAN
484EFIAPI
486 IN OUT VOID *EcContext,
487 IN CONST UINT8 *PeerPublic,
488 IN UINTN PeerPublicSize,
489 IN CONST INT32 *CompressFlag,
490 OUT UINT8 *Key,
491 IN OUT UINTN *KeySize
492 )
493{
494 ASSERT (FALSE);
495 return FALSE;
496}
497
527BOOLEAN
528EFIAPI
530 IN VOID *EcContext,
531 IN UINTN HashNid,
532 IN CONST UINT8 *MessageHash,
533 IN UINTN HashSize,
534 OUT UINT8 *Signature,
535 IN OUT UINTN *SigSize
536 )
537{
538 ASSERT (FALSE);
539 return FALSE;
540}
541
565BOOLEAN
566EFIAPI
568 IN VOID *EcContext,
569 IN UINTN HashNid,
570 IN CONST UINT8 *MessageHash,
571 IN UINTN HashSize,
572 IN CONST UINT8 *Signature,
573 IN UINTN SigSize
574 )
575{
576 ASSERT (FALSE);
577 return FALSE;
578}
UINT64 UINTN
#define NULL
Definition: Base.h:319
#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 EcPointInvert(IN CONST VOID *EcGroup, IN OUT VOID *EcPoint, IN VOID *BnCtx)
Definition: CryptEcNull.c:255
BOOLEAN EFIAPI EcPointSetCompressedCoordinates(IN CONST VOID *EcGroup, IN VOID *EcPoint, IN CONST VOID *BnX, IN UINT8 YBit, IN VOID *BnCtx)
Definition: CryptEcNull.c:350
BOOLEAN EFIAPI EcPointMul(IN CONST VOID *EcGroup, OUT VOID *EcPointResult, IN CONST VOID *EcPoint, IN CONST VOID *BnPScalar, IN VOID *BnCtx)
Definition: CryptEcNull.c:231
BOOLEAN EFIAPI EcPointAdd(IN CONST VOID *EcGroup, OUT VOID *EcPointResult, IN CONST VOID *EcPointA, IN CONST VOID *EcPointB, IN VOID *BnCtx)
Definition: CryptEcNull.c:204
BOOLEAN EFIAPI EcGenerateKey(IN OUT VOID *EcContext, OUT UINT8 *PublicKey, IN OUT UINTN *PublicKeySize)
Definition: CryptEcNull.c:422
BOOLEAN EFIAPI EcPointIsOnCurve(IN CONST VOID *EcGroup, IN CONST VOID *EcPoint, IN VOID *BnCtx)
Definition: CryptEcNull.c:277
BOOLEAN EFIAPI EcPointIsAtInfinity(IN CONST VOID *EcGroup, IN CONST VOID *EcPoint)
Definition: CryptEcNull.c:298
BOOLEAN EFIAPI EcGetPubKey(IN OUT VOID *EcContext, OUT UINT8 *PublicKey, IN OUT UINTN *PublicKeySize)
Definition: CryptEcNull.c:448
BOOLEAN EFIAPI EcDsaSign(IN VOID *EcContext, IN UINTN HashNid, IN CONST UINT8 *MessageHash, IN UINTN HashSize, OUT UINT8 *Signature, IN OUT UINTN *SigSize)
Definition: CryptEcNull.c:529
VOID *EFIAPI EcNewByNid(IN UINTN Nid)
Definition: CryptEcNull.c:372
VOID *EFIAPI EcPointInit(IN CONST VOID *EcGroup)
Definition: CryptEcNull.c:110
VOID *EFIAPI EcGroupInit(IN UINTN CryptoNid)
Definition: CryptEcNull.c:25
BOOLEAN EFIAPI EcPointEqual(IN CONST VOID *EcGroup, IN CONST VOID *EcPointA, IN CONST VOID *EcPointB, IN VOID *BnCtx)
Definition: CryptEcNull.c:320
BOOLEAN EFIAPI EcGroupGetCurve(IN CONST VOID *EcGroup, OUT VOID *BnPrime, OUT VOID *BnA, OUT VOID *BnB, IN VOID *BnCtx)
Definition: CryptEcNull.c:50
VOID EFIAPI EcPointDeInit(IN VOID *EcPoint, IN BOOLEAN Clear)
Definition: CryptEcNull.c:126
BOOLEAN EFIAPI EcDsaVerify(IN VOID *EcContext, IN UINTN HashNid, IN CONST UINT8 *MessageHash, IN UINTN HashSize, IN CONST UINT8 *Signature, IN UINTN SigSize)
Definition: CryptEcNull.c:567
BOOLEAN EFIAPI EcGroupGetOrder(IN VOID *EcGroup, OUT VOID *BnOrder)
Definition: CryptEcNull.c:76
BOOLEAN EFIAPI EcDhComputeKey(IN OUT VOID *EcContext, IN CONST UINT8 *PeerPublic, IN UINTN PeerPublicSize, IN CONST INT32 *CompressFlag, OUT UINT8 *Key, IN OUT UINTN *KeySize)
Definition: CryptEcNull.c:485
VOID EFIAPI EcGroupFree(IN VOID *EcGroup)
Definition: CryptEcNull.c:92
BOOLEAN EFIAPI EcPointGetAffineCoordinates(IN CONST VOID *EcGroup, IN CONST VOID *EcPoint, OUT VOID *BnX, OUT VOID *BnY, IN VOID *BnCtx)
Definition: CryptEcNull.c:151
BOOLEAN EFIAPI EcPointSetAffineCoordinates(IN CONST VOID *EcGroup, IN VOID *EcPoint, IN CONST VOID *BnX, IN CONST VOID *BnY, IN VOID *BnCtx)
Definition: CryptEcNull.c:177
VOID EFIAPI EcFree(IN VOID *EcContext)
Definition: CryptEcNull.c:387