Lines Matching refs:cert
222 static bool efi_lookup_certificate(struct x509_certificate *cert, in efi_lookup_certificate() argument
232 EFI_PRINT("%s: Enter, %p, %p\n", __func__, cert, db); in efi_lookup_certificate()
234 if (!cert || !db || !db->sig_data_list) in efi_lookup_certificate()
242 reg[0].data = cert->tbs; in efi_lookup_certificate()
243 reg[0].size = cert->tbs_size; in efi_lookup_certificate()
247 EFI_PRINT("%s: searching for %s\n", __func__, cert->subject); in efi_lookup_certificate()
302 struct x509_certificate *cert; in efi_verify_certificate() local
318 cert = x509_cert_parse(sig_data->data, sig_data->size); in efi_verify_certificate()
319 if (IS_ERR_OR_NULL(cert)) { in efi_verify_certificate()
324 ret = public_key_verify_signature(cert->pub, in efi_verify_certificate()
329 *root = cert; in efi_verify_certificate()
331 x509_free_certificate(cert); in efi_verify_certificate()
334 x509_free_certificate(cert); in efi_verify_certificate()
359 struct x509_certificate *cert, in efi_signature_check_revocation() argument
370 EFI_PRINT("%s: Enter, %p, %p, %p\n", __func__, sinfo, cert, dbx); in efi_signature_check_revocation()
372 if (!sinfo || !cert || !dbx || !dbx->sig_data_list) in efi_signature_check_revocation()
375 EFI_PRINT("Checking revocation against %s\n", cert->subject); in efi_signature_check_revocation()
381 reg[0].data = cert->tbs; in efi_signature_check_revocation()
382 reg[0].size = cert->tbs_size; in efi_signature_check_revocation()