summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2015-08-26 15:56:05 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-08-27 10:20:24 -0700
commitf8ba822b8a114af5cc88b208fd277d3079476677 (patch)
tree7e72da40a38ed223b946821479f62641d178ec41
parent9cd821ca51e637780d66f4b658193466e4535d9f (diff)
downloadvboot-f8ba822b8a114af5cc88b208fd277d3079476677.tar.gz
VBOOT2: Add work buffer too small error message
Update VBOOT2 to add work buffer too small error message. BRANCH=none BUG=None TEST=Build and run on kunimitsu Change-Id: Icb4b873e0c350a5667948e106c111356acab6a82 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://chromium-review.googlesource.com/295753 Commit-Ready: Leroy P Leahy <leroy.p.leahy@intel.com> Tested-by: Leroy P Leahy <leroy.p.leahy@intel.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--firmware/2lib/2rsa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/2lib/2rsa.c b/firmware/2lib/2rsa.c
index 5a1e0fad..7862b133 100644
--- a/firmware/2lib/2rsa.c
+++ b/firmware/2lib/2rsa.c
@@ -317,8 +317,10 @@ int vb2_rsa_verify_digest(const struct vb2_public_key *key,
}
workbuf32 = vb2_workbuf_alloc(&wblocal, 3 * key_bytes);
- if (!workbuf32)
+ if (!workbuf32) {
+ VB2_DEBUG("ERROR - vboot2 work buffer too small!\n");
return VB2_ERROR_RSA_VERIFY_WORKBUF;
+ }
modpowF4(key, sig, workbuf32);