TianoCore EDK2 master
Loading...
Searching...
No Matches
CryptX509Null.c
Go to the documentation of this file.
1
10#include "InternalCryptLib.h"
11
24BOOLEAN
25EFIAPI
27 IN CONST UINT8 *Cert,
28 IN UINTN CertSize,
29 OUT UINT8 **SingleX509Cert
30 )
31{
32 ASSERT (FALSE);
33 return FALSE;
34}
35
55BOOLEAN
56EFIAPI
58 IN OUT UINT8 **X509Stack,
59 IN VA_LIST Args
60 )
61{
62 ASSERT (FALSE);
63 return FALSE;
64}
65
81BOOLEAN
82EFIAPI
84 IN OUT UINT8 **X509Stack,
85 ...
86 )
87{
88 ASSERT (FALSE);
89 return FALSE;
90}
91
100VOID
101EFIAPI
103 IN VOID *X509Cert
104 )
105{
106 ASSERT (FALSE);
107}
108
117VOID
118EFIAPI
120 IN VOID *X509Stack
121 )
122{
123 ASSERT (FALSE);
124}
125
141BOOLEAN
142EFIAPI
144 IN CONST UINT8 *Cert,
145 IN UINTN CertSize,
146 OUT UINT8 *CertSubject,
147 IN OUT UINTN *SubjectSize
148 )
149{
150 ASSERT (FALSE);
151 return FALSE;
152}
153
173RETURN_STATUS
174EFIAPI
176 IN CONST UINT8 *Cert,
177 IN UINTN CertSize,
178 OUT CHAR8 *CommonName OPTIONAL,
179 IN OUT UINTN *CommonNameSize
180 )
181{
182 ASSERT (FALSE);
183 return RETURN_UNSUPPORTED;
184}
185
205RETURN_STATUS
206EFIAPI
208 IN CONST UINT8 *Cert,
209 IN UINTN CertSize,
210 OUT CHAR8 *NameBuffer OPTIONAL,
211 IN OUT UINTN *NameBufferSize
212 )
213{
214 ASSERT (FALSE);
215 return RETURN_UNSUPPORTED;
216}
217
232BOOLEAN
233EFIAPI
235 IN CONST UINT8 *Cert,
236 IN UINTN CertSize,
237 OUT VOID **RsaContext
238 )
239{
240 ASSERT (FALSE);
241 return FALSE;
242}
243
257BOOLEAN
258EFIAPI
260 IN CONST UINT8 *Cert,
261 IN UINTN CertSize,
262 IN CONST UINT8 *CACert,
263 IN UINTN CACertSize
264 )
265{
266 ASSERT (FALSE);
267 return FALSE;
268}
269
283BOOLEAN
284EFIAPI
286 IN CONST UINT8 *Cert,
287 IN UINTN CertSize,
288 OUT UINT8 **TBSCert,
289 OUT UINTN *TBSCertSize
290 )
291{
292 ASSERT (FALSE);
293 return FALSE;
294}
295
312BOOLEAN
313EFIAPI
315 IN CONST UINT8 *Cert,
316 IN UINTN CertSize,
317 OUT VOID **EcContext
318 )
319{
320 ASSERT (FALSE);
321 return FALSE;
322}
323
340BOOLEAN
341EFIAPI
343 IN CONST UINT8 *Cert,
344 IN UINTN CertSize,
345 OUT UINTN *Version
346 )
347{
348 ASSERT (FALSE);
349 return FALSE;
350}
351
375BOOLEAN
376EFIAPI
378 IN CONST UINT8 *Cert,
379 IN UINTN CertSize,
380 OUT UINT8 *SerialNumber, OPTIONAL
381 IN OUT UINTN *SerialNumberSize
382 )
383{
384 ASSERT (FALSE);
385 return FALSE;
386}
387
407BOOLEAN
408EFIAPI
410 IN CONST UINT8 *Cert,
411 IN UINTN CertSize,
412 OUT UINT8 *CertIssuer,
413 IN OUT UINTN *CertIssuerSize
414 )
415{
416 ASSERT (FALSE);
417 return FALSE;
418}
419
438BOOLEAN
439EFIAPI
441 IN CONST UINT8 *Cert,
442 IN UINTN CertSize,
443 OUT UINT8 *Oid, OPTIONAL
444 IN OUT UINTN *OidSize
445 )
446{
447 ASSERT (FALSE);
448 return FALSE;
449}
450
471BOOLEAN
472EFIAPI
474 IN CONST UINT8 *Cert,
475 IN UINTN CertSize,
476 IN CONST UINT8 *Oid,
477 IN UINTN OidSize,
478 OUT UINT8 *ExtensionData,
479 IN OUT UINTN *ExtensionDataSize
480 )
481{
482 ASSERT (FALSE);
483 return FALSE;
484}
485
503BOOLEAN
504EFIAPI
506 IN CONST UINT8 *Cert,
507 IN UINTN CertSize,
508 OUT UINT8 *Usage,
509 IN OUT UINTN *UsageSize
510 )
511{
512 ASSERT (FALSE);
513 return FALSE;
514}
515
537BOOLEAN
538EFIAPI
540 IN CONST UINT8 *Cert,
541 IN UINTN CertSize,
542 IN UINT8 *From,
543 IN OUT UINTN *FromSize,
544 IN UINT8 *To,
545 IN OUT UINTN *ToSize
546 )
547{
548 ASSERT (FALSE);
549 return FALSE;
550}
551
575BOOLEAN
576EFIAPI
578 IN CONST CHAR8 *DateTimeStr,
579 OUT VOID *DateTime,
580 IN OUT UINTN *DateTimeSize
581 )
582{
583 ASSERT (FALSE);
584 return FALSE;
585}
586
603INT32
604EFIAPI
606 IN CONST VOID *DateTime1,
607 IN CONST VOID *DateTime2
608 )
609{
610 ASSERT (FALSE);
611 return -3;
612}
613
625BOOLEAN
626EFIAPI
628 IN CONST UINT8 *Cert,
629 IN UINTN CertSize,
630 OUT UINTN *Usage
631 )
632{
633 ASSERT (FALSE);
634 return FALSE;
635}
636
653BOOLEAN
654EFIAPI
656 IN CONST UINT8 *RootCert,
657 IN UINTN RootCertLength,
658 IN CONST UINT8 *CertChain,
659 IN UINTN CertChainLength
660 )
661{
662 ASSERT (FALSE);
663 return FALSE;
664}
665
684BOOLEAN
685EFIAPI
687 IN CONST UINT8 *CertChain,
688 IN UINTN CertChainLength,
689 IN CONST INT32 CertIndex,
690 OUT CONST UINT8 **Cert,
691 OUT UINTN *CertLength
692 )
693{
694 ASSERT (FALSE);
695 return FALSE;
696}
697
709BOOLEAN
710EFIAPI
712 IN OUT UINT8 **Ptr,
713 IN CONST UINT8 *End,
714 OUT UINTN *Length,
715 IN UINT32 Tag
716 )
717{
718 ASSERT (FALSE);
719 return FALSE;
720}
721
740BOOLEAN
741EFIAPI
743 CONST UINT8 *Cert,
744 UINTN CertSize,
745 UINT8 *BasicConstraints,
746 UINTN *BasicConstraintsSize
747 )
748{
749 ASSERT (FALSE);
750 return FALSE;
751}
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define RETURN_UNSUPPORTED
Definition: Base.h:1081
#define FALSE
Definition: Base.h:307
CHAR8 * VA_LIST
Definition: Base.h:643
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
BOOLEAN EFIAPI X509GetSerialNumber(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT UINT8 *SerialNumber, OPTIONAL IN OUT UINTN *SerialNumberSize)
INT32 EFIAPI X509CompareDateTime(IN CONST VOID *DateTime1, IN CONST VOID *DateTime2)
BOOLEAN EFIAPI X509GetVersion(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT UINTN *Version)
BOOLEAN EFIAPI X509GetExtensionData(IN CONST UINT8 *Cert, IN UINTN CertSize, IN CONST UINT8 *Oid, IN UINTN OidSize, OUT UINT8 *ExtensionData, IN OUT UINTN *ExtensionDataSize)
BOOLEAN EFIAPI X509ConstructCertificateStack(IN OUT UINT8 **X509Stack,...)
Definition: CryptX509Null.c:83
BOOLEAN EFIAPI X509GetIssuerName(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT UINT8 *CertIssuer, IN OUT UINTN *CertIssuerSize)
BOOLEAN EFIAPI X509FormatDateTime(IN CONST CHAR8 *DateTimeStr, OUT VOID *DateTime, IN OUT UINTN *DateTimeSize)
BOOLEAN EFIAPI X509VerifyCert(IN CONST UINT8 *Cert, IN UINTN CertSize, IN CONST UINT8 *CACert, IN UINTN CACertSize)
BOOLEAN EFIAPI X509GetSignatureAlgorithm(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT UINT8 *Oid, OPTIONAL IN OUT UINTN *OidSize)
BOOLEAN EFIAPI RsaGetPublicKeyFromX509(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT VOID **RsaContext)
RETURN_STATUS EFIAPI X509GetOrganizationName(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT CHAR8 *NameBuffer OPTIONAL, IN OUT UINTN *NameBufferSize)
VOID EFIAPI X509StackFree(IN VOID *X509Stack)
BOOLEAN EFIAPI X509GetExtendedKeyUsage(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT UINT8 *Usage, IN OUT UINTN *UsageSize)
BOOLEAN EFIAPI X509GetValidity(IN CONST UINT8 *Cert, IN UINTN CertSize, IN UINT8 *From, IN OUT UINTN *FromSize, IN UINT8 *To, IN OUT UINTN *ToSize)
BOOLEAN EFIAPI Asn1GetTag(IN OUT UINT8 **Ptr, IN CONST UINT8 *End, OUT UINTN *Length, IN UINT32 Tag)
BOOLEAN EFIAPI EcGetPublicKeyFromX509(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT VOID **EcContext)
VOID EFIAPI X509Free(IN VOID *X509Cert)
BOOLEAN EFIAPI X509ConstructCertificateStackV(IN OUT UINT8 **X509Stack, IN VA_LIST Args)
Definition: CryptX509Null.c:57
BOOLEAN EFIAPI X509GetCertFromCertChain(IN CONST UINT8 *CertChain, IN UINTN CertChainLength, IN CONST INT32 CertIndex, OUT CONST UINT8 **Cert, OUT UINTN *CertLength)
BOOLEAN EFIAPI X509GetSubjectName(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT UINT8 *CertSubject, IN OUT UINTN *SubjectSize)
BOOLEAN EFIAPI X509GetKeyUsage(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT UINTN *Usage)
BOOLEAN EFIAPI X509GetTBSCert(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT UINT8 **TBSCert, OUT UINTN *TBSCertSize)
BOOLEAN EFIAPI X509GetExtendedBasicConstraints(CONST UINT8 *Cert, UINTN CertSize, UINT8 *BasicConstraints, UINTN *BasicConstraintsSize)
RETURN_STATUS EFIAPI X509GetCommonName(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT CHAR8 *CommonName OPTIONAL, IN OUT UINTN *CommonNameSize)
BOOLEAN EFIAPI X509VerifyCertChain(IN CONST UINT8 *RootCert, IN UINTN RootCertLength, IN CONST UINT8 *CertChain, IN UINTN CertChainLength)
BOOLEAN EFIAPI X509ConstructCertificate(IN CONST UINT8 *Cert, IN UINTN CertSize, OUT UINT8 **SingleX509Cert)
Definition: CryptX509Null.c:26