Lines Matching refs:ret
95 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
106 ret = mbedtls_md5_starts(&operation->ctx.md5);
112 ret = mbedtls_ripemd160_starts(&operation->ctx.ripemd160);
118 ret = mbedtls_sha1_starts(&operation->ctx.sha1);
124 ret = mbedtls_sha256_starts(&operation->ctx.sha256, 1);
130 ret = mbedtls_sha256_starts(&operation->ctx.sha256, 0);
136 ret = mbedtls_sha512_starts(&operation->ctx.sha512, 1);
142 ret = mbedtls_sha512_starts(&operation->ctx.sha512, 0);
148 ret = mbedtls_sha3_starts(&operation->ctx.sha3, MBEDTLS_SHA3_224);
154 ret = mbedtls_sha3_starts(&operation->ctx.sha3, MBEDTLS_SHA3_256);
160 ret = mbedtls_sha3_starts(&operation->ctx.sha3, MBEDTLS_SHA3_384);
166 ret = mbedtls_sha3_starts(&operation->ctx.sha3, MBEDTLS_SHA3_512);
174 if (ret == 0) {
179 return mbedtls_to_psa_error(ret);
266 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
271 ret = mbedtls_md5_update(&operation->ctx.md5,
277 ret = mbedtls_ripemd160_update(&operation->ctx.ripemd160,
283 ret = mbedtls_sha1_update(&operation->ctx.sha1,
289 ret = mbedtls_sha256_update(&operation->ctx.sha256,
295 ret = mbedtls_sha256_update(&operation->ctx.sha256,
301 ret = mbedtls_sha512_update(&operation->ctx.sha512,
307 ret = mbedtls_sha512_update(&operation->ctx.sha512,
327 ret = mbedtls_sha3_update(&operation->ctx.sha3,
337 return mbedtls_to_psa_error(ret);
347 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
368 ret = mbedtls_md5_finish(&operation->ctx.md5, hash);
373 ret = mbedtls_ripemd160_finish(&operation->ctx.ripemd160, hash);
378 ret = mbedtls_sha1_finish(&operation->ctx.sha1, hash);
383 ret = mbedtls_sha256_finish(&operation->ctx.sha256, hash);
388 ret = mbedtls_sha256_finish(&operation->ctx.sha256, hash);
393 ret = mbedtls_sha512_finish(&operation->ctx.sha512, hash);
398 ret = mbedtls_sha512_finish(&operation->ctx.sha512, hash);
417 ret = mbedtls_sha3_finish(&operation->ctx.sha3, hash, hash_size);
424 status = mbedtls_to_psa_error(ret);