From 3e890667fef402d981dd8623ec89dd7e52d9d2fd Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Tue, 19 Jun 2012 15:25:02 -0400 Subject: [PATCH] Fix cert size --- shim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shim.c b/shim.c index f524aa6..a479f33 100644 --- a/shim.c +++ b/shim.c @@ -438,7 +438,7 @@ static EFI_STATUS verify_buffer (char *data, int datasize, if (!AuthenticodeVerify(cert->CertData, context->SecDir->Size - sizeof(cert->Hdr), - vendor_cert, sizeof(cert), hash, + vendor_cert, sizeof(vendor_cert), hash, SHA256_DIGEST_SIZE)) { Print(L"Invalid signature\n"); status = EFI_ACCESS_DENIED;