summaryrefslogtreecommitdiff
path: root/firmware/2lib/include/2return_codes.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/2lib/include/2return_codes.h')
-rw-r--r--firmware/2lib/include/2return_codes.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h
index 4070f007..9f41b8b8 100644
--- a/firmware/2lib/include/2return_codes.h
+++ b/firmware/2lib/include/2return_codes.h
@@ -71,6 +71,9 @@ enum vb2_return_code {
/* Digest mismatch in vb2_verify_digest() */
VB2_ERROR_RSA_VERIFY_DIGEST,
+ /* Bad size calculation in vb2_check_padding() */
+ VB2_ERROR_RSA_PADDING_SIZE,
+
/**********************************************************************
* NV storage errors
*/
@@ -128,8 +131,8 @@ enum vb2_return_code {
/* Member data outside parent in vb2_verify_member_inside() */
VB2_ERROR_INSIDE_DATA_OUTSIDE,
- /* Bad algorithm in vb2_unpack_key() */
- VB2_ERROR_UNPACK_KEY_ALGORITHM,
+ /* Unsupported signature algorithm in vb2_unpack_key() */
+ VB2_ERROR_UNPACK_KEY_SIG_ALGORITHM,
/* Bad key size in vb2_unpack_key() */
VB2_ERROR_UNPACK_KEY_SIZE,