nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone
Blob Blame History Raw
From 834773665859d4a23553406715d11b3e3328b5ac Mon Sep 17 00:00:00 2001
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Date: Wed, 20 Mar 2013 17:24:39 +0100
Subject: [PATCH 221/482] 	* grub-core/commands/verify.c (hashes): Add
 several hashes 	from the spec.

---
 ChangeLog                   | 5 +++++
 grub-core/commands/verify.c | 5 ++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 5e6369c..bcc2f92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
 
+	* grub-core/commands/verify.c (hashes): Add several hashes
+	from the spec.
+
+2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
+
 	Slight improve in USB-related boot-time checkpoints.
 
 2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
diff --git a/grub-core/commands/verify.c b/grub-core/commands/verify.c
index 38bb941..6c0b580 100644
--- a/grub-core/commands/verify.c
+++ b/grub-core/commands/verify.c
@@ -124,7 +124,10 @@ struct signature_v4_header
 
 const char *hashes[] = {
   "md5", "sha1", "ripemd160",
-  [0x0a] = "sha512"
+  [0x08] = "sha256",
+  [0x09] = "sha384",
+  [0x0a] = "sha512",
+  [0x0b] = "sha224"
 };
 
 struct
-- 
1.8.2.1