[avb] Refactor the error thrown by payload verification API
This cl refactors the error by:
- Renaming the error to AvbSlotVerifyError to reveal that it is
the error part of `avb_bindgen::AvbSlotVerifyResult`.
- Moving the error to a separate module as the module `verify`
is becoming too long.
There is no behavior change for this cl.
Bug: 256148034
Test: atest libpvmfw_avb.test && m pvmfw_img
Change-Id: I404600707bb2308836de14cde2097c370d8854dd
diff --git a/pvmfw/avb/src/lib.rs b/pvmfw/avb/src/lib.rs
index 1f39076..6a5b16d 100644
--- a/pvmfw/avb/src/lib.rs
+++ b/pvmfw/avb/src/lib.rs
@@ -18,6 +18,8 @@
// For usize.checked_add_signed(isize), available in Rust 1.66.0
#![feature(mixed_integer_ops)]
+mod error;
mod verify;
-pub use verify::{verify_payload, AvbImageVerifyError};
+pub use error::AvbSlotVerifyError;
+pub use verify::verify_payload;