/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pk/ |
D | CryptX509.c | 36 IN CONST UINT8 *Cert, in X509ConstructCertificate() argument 47 if (Cert == NULL || SingleX509Cert == NULL || CertSize > INT_MAX) { in X509ConstructCertificate() 54 Temp = Cert; in X509ConstructCertificate() 88 UINT8 *Cert; in X509ConstructCertificateStack() local 122 Cert = VA_ARG (Args, UINT8 *); in X509ConstructCertificateStack() 123 if (Cert == NULL) { in X509ConstructCertificateStack() 137 (CONST UINT8 *) Cert, in X509ConstructCertificateStack() 239 IN CONST UINT8 *Cert, in X509GetSubjectName() argument 253 if (Cert == NULL || SubjectSize == NULL) { in X509GetSubjectName() 262 Status = X509ConstructCertificate (Cert, CertSize, (UINT8 **) &X509Cert); in X509GetSubjectName() [all …]
|
D | CryptX509Null.c | 33 IN CONST UINT8 *Cert, in X509ConstructCertificate() argument 120 IN CONST UINT8 *Cert, in X509GetSubjectName() argument 147 IN CONST UINT8 *Cert, in RsaGetPublicKeyFromX509() argument 172 IN CONST UINT8 *Cert, in X509VerifyCert() argument 198 IN CONST UINT8 *Cert, in X509GetTBSCert() argument
|
D | CryptPkcs7Verify.c | 157 OUT UINT8 **Cert, in X509PopCertificate() argument 171 if ((X509Stack == NULL) || (Cert == NULL) || (CertSize == NULL)) { in X509PopCertificate() 210 *Cert = Buffer; in X509PopCertificate() 469 X509 *Cert; in Pkcs7GetCertificatesList() local 485 Cert = NULL; in Pkcs7GetCertificatesList() 551 Cert = Signer; in Pkcs7GetCertificatesList() 556 if (CertCtx.check_issued (&CertCtx, Cert, Cert)) { in Pkcs7GetCertificatesList() 567 if (CertCtx.check_issued (&CertCtx, Cert, TempCert)) { in Pkcs7GetCertificatesList() 578 Cert = Issuer; in Pkcs7GetCertificatesList() 758 X509 *Cert; in Pkcs7Verify() local [all …]
|
D | CryptTs.c | 362 X509 *Cert; in TimestampTokenVerify() local 388 Cert = NULL; in TimestampTokenVerify() 414 Cert = d2i_X509 (NULL, &CertTemp, (long) CertSize); in TimestampTokenVerify() 415 if (Cert == NULL) { in TimestampTokenVerify() 423 if ((CertStore == NULL) || !(X509_STORE_add_cert (CertStore, Cert))) { in TimestampTokenVerify() 487 X509_free (Cert); in TimestampTokenVerify()
|
/device/linaro/bootloader/edk2/CryptoPkg/Library/TlsLib/ |
D | TlsConfig.c | 419 X509 *Cert; in TlsSetCaCertificate() local 428 Cert = NULL; in TlsSetCaCertificate() 442 Cert = d2i_X509 (NULL, (const unsigned char ** )&Data, (long) DataSize); in TlsSetCaCertificate() 443 if (Cert == NULL) { in TlsSetCaCertificate() 458 Cert = PEM_read_bio_X509 (BioCert, NULL, NULL, NULL); in TlsSetCaCertificate() 459 if (Cert == NULL) { in TlsSetCaCertificate() 475 Ret = X509_STORE_add_cert (X509Store, Cert); in TlsSetCaCertificate() 493 if (Cert != NULL) { in TlsSetCaCertificate() 494 X509_free (Cert); in TlsSetCaCertificate() 526 X509 *Cert; in TlsSetHostPublicCert() local [all …]
|
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/ |
D | CryptX509Null.c | 33 IN CONST UINT8 *Cert, in X509ConstructCertificate() argument 120 IN CONST UINT8 *Cert, in X509GetSubjectName() argument 147 IN CONST UINT8 *Cert, in RsaGetPublicKeyFromX509() argument 172 IN CONST UINT8 *Cert, in X509VerifyCert() argument 198 IN CONST UINT8 *Cert, in X509GetTBSCert() argument
|
/device/linaro/bootloader/edk2/NetworkPkg/TlsAuthConfigDxe/ |
D | TlsAuthConfigDxeStrings.uni | 22 #string STR_TLS_AUTH_CONFIG_CLIENT_CERT #language en-US "Client Cert Configuration" 25 #string STR_TLS_AUTH_CONFIG_ENROLL_CERT #language en-US "Enroll Cert" 27 #string STR_TLS_AUTH_CONFIG_DELETE_CERT #language en-US "Delete Cert" 30 #string STR_TLS_AUTH_CONFIG_ADD_CERT_FILE #language en-US "Enroll Cert Using File" 32 #string STR_TLS_AUTH_CONFIG_CERT_GUID #language en-US "Cert GUID"
|
D | TlsAuthConfigImpl.c | 283 EFI_SIGNATURE_DATA *Cert; in UpdateDeletePage() local 291 Cert = NULL; in UpdateDeletePage() 380 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList in UpdateDeletePage() 387 GuidToString (&Cert->SignatureOwner, GuidStr, 100); in UpdateDeletePage() 468 EFI_SIGNATURE_DATA *Cert; in DeleteCert() local 478 Cert = NULL; in DeleteCert() 526 …Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->S… in DeleteCert() 539 CopyMem (Data + Offset, (UINT8*)(Cert), CertList->SignatureSize); in DeleteCert() 543 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize); in DeleteCert()
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/ |
D | DxeImageVerificationLib.c | 988 EFI_SIGNATURE_DATA *Cert; in IsSignatureFoundInDatabase() local 1021 …Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->S… in IsSignatureFoundInDatabase() 1024 if (CompareMem (Cert->SignatureData, Signature, SignatureSize) == 0) { in IsSignatureFoundInDatabase() 1029 … SecureBootHook (VariableName, &gEfiImageSecurityDatabaseGuid, CertList->SignatureSize, Cert); in IsSignatureFoundInDatabase() 1033 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize); in IsSignatureFoundInDatabase() 1130 EFI_SIGNATURE_DATA *Cert; in PassTimestampCheck() local 1145 Cert = NULL; in PassTimestampCheck() 1177 …Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->S… in PassTimestampCheck() 1183 RootCert = Cert->SignatureData; in PassTimestampCheck() 1197 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize); in PassTimestampCheck() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/AuthVariableLib/ |
D | AuthService.c | 1394 EFI_SIGNATURE_DATA *Cert; in FilterSignatureList() local 1436 …Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->S… in FilterSignatureList() 1442 if (CompareMem (NewCert, Cert, CertList->SignatureSize) == 0) { in FilterSignatureList() 1446 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize); in FilterSignatureList() 2174 EFI_SIGNATURE_DATA *Cert; in VerifyTimeBasedPayload() local 2325 …Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->Si… in VerifyTimeBasedPayload() 2327 (CompareMem (Cert->SignatureData, RootCert, RootCertSize) != 0)) { in VerifyTimeBasedPayload() 2366 …Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->… in VerifyTimeBasedPayload() 2372 RootCert = Cert->SignatureData; in VerifyTimeBasedPayload() 2389 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize); in VerifyTimeBasedPayload() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/ |
D | SecureBootConfigImpl.c | 1003 EFI_SIGNATURE_DATA *Cert; in IsSignatureFoundInDatabase() local 1037 …Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->S… in IsSignatureFoundInDatabase() 1040 if (CompareMem (Cert->SignatureData, Signature, SignatureSize) == 0) { in IsSignatureFoundInDatabase() 1047 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize); in IsSignatureFoundInDatabase() 2355 EFI_SIGNATURE_DATA *Cert; in UpdateDeletePage() local 2363 Cert = NULL; in UpdateDeletePage() 2464 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList in UpdateDeletePage() 2471 GuidToString (&Cert->SignatureOwner, GuidStr, 100); in UpdateDeletePage() 2542 EFI_SIGNATURE_DATA *Cert; in DeleteKeyExchangeKey() local 2553 Cert = NULL; in DeleteKeyExchangeKey() [all …]
|
/device/linaro/bootloader/edk2/CryptoPkg/Include/Library/ |
D | BaseCryptLib.h | 2050 IN CONST UINT8 *Cert, 2077 IN CONST UINT8 *Cert, 2104 IN CONST UINT8 *Cert, 2129 IN CONST UINT8 *Cert, 2207 IN CONST UINT8 *Cert,
|
/device/linaro/bootloader/edk2/SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/ |
D | Pkcs7VerifyDxe.c | 494 UINT8 *Cert; in P7CheckRevocation() local 581 Cert = (UINT8 *)CertPtr + sizeof (UINT32); in P7CheckRevocation() 583 if (IsCertHashRevoked (Cert, CertSize, RevokedDb, &RevocationTime)) { in P7CheckRevocation()
|
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/Ikev2/ |
D | Payload.c | 1496 IKEV2_CERT *Cert; in Ikev2GenerateCertificatePayload() local 1531 Cert = AllocateZeroPool (PayloadLen); in Ikev2GenerateCertificatePayload() 1532 if (Cert == NULL) { in Ikev2GenerateCertificatePayload() 1539 Cert->Header.NextPayload = NextPayload; in Ikev2GenerateCertificatePayload() 1540 Cert->Header.PayloadLength = PayloadLen; in Ikev2GenerateCertificatePayload() 1541 Cert->CertEncoding = EncodeType; in Ikev2GenerateCertificatePayload() 1544 ((UINT8 *)Cert) + sizeof (IKEV2_CERT), in Ikev2GenerateCertificatePayload() 1579 ((UINT8 *)Cert) + sizeof (IKEV2_CERT), in Ikev2GenerateCertificatePayload() 1596 CertPayload->PayloadBuf = (UINT8 *) Cert; in Ikev2GenerateCertificatePayload() 1601 if (Cert != NULL) { in Ikev2GenerateCertificatePayload() [all …]
|
/device/linaro/bootloader/edk2/NetworkPkg/HttpDxe/ |
D | HttpsSupport.c | 386 EFI_SIGNATURE_DATA *Cert; in TlsConfigCertificate() local 441 …Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->Signat… in TlsConfigCertificate() 450 Cert->SignatureData, in TlsConfigCertificate() 451 … CertList->SignatureSize - sizeof (Cert->SignatureOwner) in TlsConfigCertificate() 458 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize); in TlsConfigCertificate()
|