diff options
Diffstat (limited to 'firmware/lib21/api.c')
-rw-r--r-- | firmware/lib21/api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/lib21/api.c b/firmware/lib21/api.c index 9f14579e..59448695 100644 --- a/firmware/lib21/api.c +++ b/firmware/lib21/api.c @@ -16,9 +16,9 @@ #include "2rsa.h" #include "vb21_common.h" -int vb21api_fw_phase3(struct vb2_context *ctx) +vb2_error_t vb21api_fw_phase3(struct vb2_context *ctx) { - int rv; + vb2_error_t rv; /* Verify firmware keyblock */ rv = vb21_load_fw_keyblock(ctx); @@ -37,7 +37,7 @@ int vb21api_fw_phase3(struct vb2_context *ctx) return VB2_SUCCESS; } -int vb21api_init_hash(struct vb2_context *ctx, +vb2_error_t vb21api_init_hash(struct vb2_context *ctx, const struct vb2_id *id, uint32_t *size) { @@ -113,7 +113,7 @@ int vb21api_init_hash(struct vb2_context *ctx, return vb2_digest_init(dc, sig->hash_alg); } -int vb21api_check_hash(struct vb2_context *ctx) +vb2_error_t vb21api_check_hash(struct vb2_context *ctx) { struct vb2_shared_data *sd = vb2_get_sd(ctx); struct vb2_digest_context *dc = (struct vb2_digest_context *) @@ -125,7 +125,7 @@ int vb21api_check_hash(struct vb2_context *ctx) const struct vb21_signature *sig; - int rv; + vb2_error_t rv; vb2_workbuf_from_ctx(ctx, &wb); |