Lines Matching defs:ret

2732 	int ret = -ENOMEM;
2752 ret = -EINVAL;
2763 ret = crypto_cipher_setkey(tfm, template[i].key,
2765 if (ret) {
2766 if (ret == template[i].setkey_error)
2769 algo, j, template[i].setkey_error, ret,
2776 ret = -EINVAL;
2795 ret = -EINVAL;
2800 ret = 0;
2805 return ret;
3306 int ret;
3326 ret = crypto_comp_compress(tfm, ctemplate[i].input,
3328 if (ret) {
3330 "on test %d for %s: ret=%d\n", i + 1, algo,
3331 -ret);
3337 ret = crypto_comp_decompress(tfm, output,
3339 if (ret) {
3340 pr_err("alg: comp: compression failed: decompress: on test %d for %s failed: ret=%d\n",
3341 i + 1, algo, -ret);
3349 ret = -EINVAL;
3358 ret = -EINVAL;
3370 ret = crypto_comp_decompress(tfm, dtemplate[i].input,
3372 if (ret) {
3374 "on test %d for %s: ret=%d\n", i + 1, algo,
3375 -ret);
3383 ret = -EINVAL;
3391 ret = -EINVAL;
3396 ret = 0;
3401 return ret;
3412 int ret;
3434 ret = -ENOMEM;
3448 ret = -ENOMEM;
3456 ret = crypto_wait_req(crypto_acomp_compress(req), &wait);
3457 if (ret) {
3458 pr_err("alg: acomp: compression failed on test %d for %s: ret=%d\n",
3459 i + 1, algo, -ret);
3472 ret = crypto_wait_req(crypto_acomp_decompress(req), &wait);
3473 if (ret) {
3474 pr_err("alg: acomp: compression failed on test %d for %s: ret=%d\n",
3475 i + 1, algo, -ret);
3484 ret = -EINVAL;
3494 ret = -EINVAL;
3505 ret = crypto_wait_req(crypto_acomp_compress(req), &wait);
3506 if (ret) {
3507 pr_err("alg: acomp: compression failed on NULL dst buffer test %d for %s: ret=%d\n",
3508 i + 1, algo, -ret);
3526 ret = -ENOMEM;
3540 ret = -ENOMEM;
3548 ret = crypto_wait_req(crypto_acomp_decompress(req), &wait);
3549 if (ret) {
3550 pr_err("alg: acomp: decompression failed on test %d for %s: ret=%d\n",
3551 i + 1, algo, -ret);
3560 ret = -EINVAL;
3570 ret = -EINVAL;
3580 ret = crypto_wait_req(crypto_acomp_decompress(req), &wait);
3581 if (ret) {
3582 pr_err("alg: acomp: decompression failed on NULL dst buffer test %d for %s: ret=%d\n",
3583 i + 1, algo, -ret);
3594 ret = 0;
3599 return ret;
3801 int ret = -EAGAIN;
3821 ret = crypto_drbg_reset_test(drng, &pers, &test_data);
3822 if (ret) {
3830 ret = crypto_drbg_get_bytes_addtl_test(drng,
3833 ret = crypto_drbg_get_bytes_addtl(drng,
3836 if (ret < 0) {
3845 ret = crypto_drbg_get_bytes_addtl_test(drng,
3848 ret = crypto_drbg_get_bytes_addtl(drng,
3851 if (ret < 0) {
3857 ret = memcmp(test->expected, buf, test->expectedlen);
3862 return ret;
4036 int ret, i;
4039 ret = do_test_kpp(tfm, vecs++, alg);
4040 if (ret) {
4042 alg, i + 1, ret);
4043 return ret;
4263 int ret, i;
4266 ret = test_akcipher_one(tfm, vecs++);
4267 if (!ret)
4271 i + 1, algo, ret);
4272 return ret;