Lines Matching refs:ret
2025 int ret; in ahash_init() local
2037 ret = PTR_ERR(hash); in ahash_init()
2046 ret = -ENOMEM; in ahash_init()
2053 ret = crypto_shash_setkey(hash, ctx->authkey, in ahash_init()
2055 if (ret) in ahash_init()
2060 ret = crypto_shash_init(ctx->shash); in ahash_init()
2061 if (ret) in ahash_init()
2065 ret = __ahash_init(req); in ahash_init()
2068 return ret; in ahash_init()
2075 return ret; in ahash_init()
2097 int ret; in ahash_update() local
2126 ret = crypto_shash_update(ctx->shash, tmpbuf, req->nbytes); in ahash_update()
2130 ret = __ahash_update(req); in ahash_update()
2133 return ret; in ahash_update()
2151 int ret; in ahash_final() local
2159 ret = crypto_shash_final(ctx->shash, req->result); in ahash_final()
2167 ret = __ahash_final(req); in ahash_final()
2170 return ret; in ahash_final()
2191 int ret; in ahash_finup() local
2204 ret = -EINVAL; in ahash_finup()
2213 ret = -ENOMEM; in ahash_finup()
2219 ret = -EINVAL; in ahash_finup()
2224 ret = crypto_shash_finup(ctx->shash, tmpbuf, req->nbytes, in ahash_finup()
2237 return ret; in ahash_finup()
2765 int ret; in aead_authenc_setkey() local
2771 ret = crypto_authenc_extractkeys(&keys, key, keylen); in aead_authenc_setkey()
2772 if (ret) in aead_authenc_setkey()
2832 ret = crypto_aead_setkey(ctx->fallback_cipher, key, keylen); in aead_authenc_setkey()
2833 if (ret) in aead_authenc_setkey()
2834 flow_log(" fallback setkey() returned:%d\n", ret); in aead_authenc_setkey()
2843 return ret; in aead_authenc_setkey()
2860 int ret = 0; in aead_gcm_ccm_setkey() local
2899 ret = crypto_aead_setkey(ctx->fallback_cipher, key, in aead_gcm_ccm_setkey()
2901 if (ret) in aead_gcm_ccm_setkey()
2902 flow_log(" fallback setkey() returned:%d\n", ret); in aead_gcm_ccm_setkey()
2914 return ret; in aead_gcm_ccm_setkey()
3023 int ret = 0; in aead_setauthsize() local
3034 ret = crypto_aead_setauthsize(ctx->fallback_cipher, authsize); in aead_setauthsize()
3035 if (ret) in aead_setauthsize()
3036 flow_log(" fallback setauth() returned:%d\n", ret); in aead_setauthsize()
3039 return ret; in aead_setauthsize()