Lines Matching refs:rv
20 int rv; in vb2api_fw_phase3() local
23 rv = vb2_load_fw_keyblock(ctx); in vb2api_fw_phase3()
24 if (rv) { in vb2api_fw_phase3()
25 vb2_fail(ctx, VB2_RECOVERY_RO_INVALID_RW, rv); in vb2api_fw_phase3()
26 return rv; in vb2api_fw_phase3()
30 rv = vb2_load_fw_preamble(ctx); in vb2api_fw_phase3()
31 if (rv) { in vb2api_fw_phase3()
32 vb2_fail(ctx, VB2_RECOVERY_RO_INVALID_RW, rv); in vb2api_fw_phase3()
33 return rv; in vb2api_fw_phase3()
46 int rv; in vb2api_init_hash() local
91 rv = vb2_unpack_key(&key, in vb2api_init_hash()
94 if (rv) in vb2api_init_hash()
95 return rv; in vb2api_init_hash()
104 rv = vb2ex_hwcrypto_digest_init(key.hash_alg, in vb2api_init_hash()
106 if (!rv) { in vb2api_init_hash()
113 if (rv != VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED) in vb2api_init_hash()
114 return rv; in vb2api_init_hash()
136 int rv; in vb2api_check_hash() local
161 rv = vb2ex_hwcrypto_digest_finalize(digest, digest_size); in vb2api_check_hash()
163 rv = vb2_digest_finalize(dc, digest, digest_size); in vb2api_check_hash()
164 if (rv) in vb2api_check_hash()
165 return rv; in vb2api_check_hash()
180 rv = vb2_unpack_key(&key, in vb2api_check_hash()
183 if (rv) in vb2api_check_hash()
184 return rv; in vb2api_check_hash()
190 rv = vb2_verify_digest(&key, &pre->body_signature, digest, &wb); in vb2api_check_hash()
191 if (rv) in vb2api_check_hash()
192 vb2_fail(ctx, VB2_RECOVERY_FW_BODY, rv); in vb2api_check_hash()
194 return rv; in vb2api_check_hash()