nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0221-grub-core-commands-verify.c-hashes-Add-several-hashe.patch

f96e0b
From 834773665859d4a23553406715d11b3e3328b5ac Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Wed, 20 Mar 2013 17:24:39 +0100
f96e0b
Subject: [PATCH 221/482] 	* grub-core/commands/verify.c (hashes): Add
f96e0b
 several hashes 	from the spec.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                   | 5 +++++
f96e0b
 grub-core/commands/verify.c | 5 ++++-
f96e0b
 2 files changed, 9 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 5e6369c..bcc2f92 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,10 @@
f96e0b
 2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* grub-core/commands/verify.c (hashes): Add several hashes
f96e0b
+	from the spec.
f96e0b
+
f96e0b
+2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	Slight improve in USB-related boot-time checkpoints.
f96e0b
 
f96e0b
 2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
diff --git a/grub-core/commands/verify.c b/grub-core/commands/verify.c
f96e0b
index 38bb941..6c0b580 100644
f96e0b
--- a/grub-core/commands/verify.c
f96e0b
+++ b/grub-core/commands/verify.c
f96e0b
@@ -124,7 +124,10 @@ struct signature_v4_header
f96e0b
 
f96e0b
 const char *hashes[] = {
f96e0b
   "md5", "sha1", "ripemd160",
f96e0b
-  [0x0a] = "sha512"
f96e0b
+  [0x08] = "sha256",
f96e0b
+  [0x09] = "sha384",
f96e0b
+  [0x0a] = "sha512",
f96e0b
+  [0x0b] = "sha224"
f96e0b
 };
f96e0b
 
f96e0b
 struct
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b