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