Lines Matching refs:err

46 	int err, i;  in hmac_setkey()  local
54 int err; in hmac_setkey() local
56 err = crypto_shash_digest(shash, inkey, keylen, ipad); in hmac_setkey()
57 if (err) in hmac_setkey()
58 return err; in hmac_setkey()
72 err = crypto_shash_init(shash) ?: in hmac_setkey()
79 return err; in hmac_setkey()
189 int err; in __hmac_create_shash() local
199 err = crypto_grab_shash(spawn, shash_crypto_instance(inst), in __hmac_create_shash()
201 if (err) in __hmac_create_shash()
207 err = -EINVAL; in __hmac_create_shash()
217 err = crypto_inst_setname(shash_crypto_instance(inst), "hmac", in __hmac_create_shash()
219 if (err) in __hmac_create_shash()
243 err = shash_register_instance(tmpl, inst); in __hmac_create_shash()
244 if (err) { in __hmac_create_shash()
248 return err; in __hmac_create_shash()
262 int err, i; in hmac_setkey_ahash() local
271 err = crypto_ahash_digest(req); in hmac_setkey_ahash()
272 if (err) in hmac_setkey_ahash()
288 err = crypto_ahash_init(req) ?: in hmac_setkey_ahash()
293 err = err ?: in hmac_setkey_ahash()
300 return err; in hmac_setkey_ahash()
371 static void hmac_finup_done(void *data, int err) in hmac_finup_done() argument
375 if (err) in hmac_finup_done()
378 err = hmac_finup_finish(preq, CRYPTO_TFM_REQ_MAY_SLEEP); in hmac_finup_done()
379 if (err == -EINPROGRESS || err == -EBUSY) in hmac_finup_done()
383 ahash_request_complete(preq, err); in hmac_finup_done()
455 int ds, ss, err; in hmac_create_ahash() local
463 err = crypto_grab_ahash(spawn, ahash_crypto_instance(inst), in hmac_create_ahash()
465 if (err) in hmac_create_ahash()
471 err = -EINVAL; in hmac_create_ahash()
480 err = crypto_inst_setname(ahash_crypto_instance(inst), tmpl->name, alg); in hmac_create_ahash()
481 if (err) in hmac_create_ahash()
511 err = ahash_register_instance(tmpl, inst); in hmac_create_ahash()
512 if (err) { in hmac_create_ahash()
516 return err; in hmac_create_ahash()
544 int err; in hmac_create_shash() local
546 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH, &mask); in hmac_create_shash()
547 if (err) in hmac_create_shash()
548 return err == -EINVAL ? -ENOENT : err; in hmac_create_shash()