From d7fd8ed25c43bd6d83e9b549a329feebaec79946 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 20 Mar 2013 17:24:39 +0100 Subject: [PATCH 220/364] * 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 + * grub-core/commands/verify.c (hashes): Add several hashes + from the spec. + +2013-03-20 Vladimir Serbinenko + Slight improve in USB-related boot-time checkpoints. 2013-03-20 Vladimir Serbinenko 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.1.4