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.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h
index f12f2c12..8f5a5c51 100644
--- a/firmware/2lib/include/2return_codes.h
+++ b/firmware/2lib/include/2return_codes.h
@@ -559,6 +559,47 @@ enum vb2_return_code {
VB2_ERROR_PUBLIC_KEY_HASH,
/**********************************************************************
+ * Errors generated by host library signature functions
+ */
+ VB2_ERROR_HOST_SIG = VB2_ERROR_HOST_BASE + 0x030000,
+
+ /* Bad hash algorithm in vb2_digest_info() */
+ VB2_ERROR_DIGEST_INFO,
+
+ /*
+ * Unable to determine signature size for key algorithm in
+ * vb2_sig_size_for_key().
+ */
+ VB2_ERROR_SIG_SIZE_FOR_KEY,
+
+ /* Bad signature size in vb2_sign_data() */
+ VB2_SIGN_DATA_SIG_SIZE,
+
+ /* Unable to get digest info in vb2_sign_data() */
+ VB2_SIGN_DATA_DIGEST_INFO,
+
+ /* Unable to get digest size in vb2_sign_data() */
+ VB2_SIGN_DATA_DIGEST_SIZE,
+
+ /* Unable to allocate digest buffer in vb2_sign_data() */
+ VB2_SIGN_DATA_DIGEST_ALLOC,
+
+ /* Unable to initialize digest in vb2_sign_data() */
+ VB2_SIGN_DATA_DIGEST_INIT,
+
+ /* Unable to extend digest in vb2_sign_data() */
+ VB2_SIGN_DATA_DIGEST_EXTEND,
+
+ /* Unable to finalize digest in vb2_sign_data() */
+ VB2_SIGN_DATA_DIGEST_FINALIZE,
+
+ /* RSA encrypt failed in vb2_sign_data() */
+ VB2_SIGN_DATA_RSA_ENCRYPT,
+
+ /* Not enough buffer space to hold signature in vb2_sign_object() */
+ VB2_SIGN_OBJECT_OVERFLOW,
+
+ /**********************************************************************
* Highest non-zero error generated inside vboot library. Note that
* error codes passed through vboot when it calls external APIs may
* still be outside this range.