Lines Matching refs:err

113 	int err;
119 err = crypto_shash_init(shash);
120 if (err)
121 return err;
122 err = crypto_shash_update(shash, (u8 *)tweak_length_block,
124 if (err)
125 return err;
134 int err;
140 err = crypto_cipher_setkey(tctx->blockcipher, key, keylen);
141 if (err)
142 return err;
148 err = crypto_skcipher_setkey(tctx->xctr, key, keylen);
149 if (err)
150 return err;
162 err = crypto_shash_setkey(tctx->polyval, hbar, BLOCKCIPHER_BLOCK_SIZE);
163 if (err)
164 return err;
176 int err;
180 err = crypto_shash_import(hash_desc, hctr2_hashed_tweaklen(tctx, has_remainder));
181 if (err)
182 return err;
183 err = crypto_shash_update(hash_desc, req->iv, TWEAK_SIZE);
184 if (err)
185 return err;
203 int err = 0;
211 err = crypto_shash_update(hash_desc, miter.addr, n);
212 if (err)
217 if (err)
218 return err;
221 err = crypto_shash_update(hash_desc, padding,
223 if (err)
224 return err;
236 int err;
241 err = crypto_shash_import(hash_desc, hctr2_hashed_tweak(tctx, rctx));
242 if (err)
243 return err;
244 err = hctr2_hash_message(req, rctx->bulk_part_dst, digest);
245 if (err)
246 return err;
255 static void hctr2_xctr_done(void *data, int err)
259 if (!err)
260 err = hctr2_finish(req);
262 skcipher_request_complete(req, err);
272 int err;
290 err = hctr2_hash_tweak(req);
291 if (err)
292 return err;
293 err = hctr2_hash_message(req, rctx->bulk_part_src, digest);
294 if (err)
295 return err;
343 int err;
351 err = PTR_ERR(blockcipher);
357 err = PTR_ERR(polyval);
382 return err;
417 int err;
419 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SKCIPHER, &mask);
420 if (err)
421 return err;
429 err = crypto_grab_skcipher(&ictx->xctr_spawn,
432 if (err)
436 err = -EINVAL;
448 err = crypto_grab_cipher(&ictx->blockcipher_spawn,
451 if (err)
456 err = -EINVAL;
461 err = crypto_grab_shash(&ictx->polyval_spawn,
464 if (err)
469 err = -EINVAL;
475 err = -ENAMETOOLONG;
508 err = skcipher_register_instance(tmpl, inst);
509 if (err) {
513 return err;