Lines Matching refs:err

67 	int err;
75 err = crypto_shash_final(hash_desc, hash);
76 if (err)
77 return err;
80 err = ubifs_hash_calc_hmac(c, hash, auth->hmac);
81 if (err)
82 return err;
93 int err;
104 err = crypto_shash_init(desc);
105 if (err) {
107 return ERR_PTR(err);
166 int err;
168 err = __ubifs_node_calc_hash(c, node, calc);
169 if (err)
170 return err;
193 int err;
200 err = PTR_ERR(sleb);
201 return err;
206 err = -EINVAL;
214 err = -EINVAL;
222 err = -EINVAL;
229 err = -EINVAL;
233 err = verify_pkcs7_signature(sup, sizeof(struct ubifs_sb_node),
238 if (err)
246 return err;
259 int err;
290 err = -ENOKEY;
297 err = -EKEYREVOKED;
303 err = PTR_ERR(c->hash_tfm);
305 c->auth_hash_name, err);
313 err = -EINVAL;
319 err = PTR_ERR(c->hmac_tfm);
320 ubifs_err(c, "Can not allocate %s: %d", hmac_name, err);
328 err = -EINVAL;
332 err = crypto_shash_setkey(c->hmac_tfm, ukp->data, ukp->datalen);
333 if (err)
340 err = PTR_ERR(c->log_hash);
344 err = 0;
347 if (err)
350 if (err)
356 return err;
392 int err;
399 err = crypto_shash_init(shash);
400 if (err)
401 return err;
404 err = crypto_shash_update(shash, node + 8, ofs_hmac - 8);
405 if (err < 0)
406 return err;
410 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len,
412 if (err < 0)
413 return err;
452 int err;
458 err = ubifs_node_calc_hmac(c, node, len, ofs_hmac, hmac);
459 if (err) {
461 return err;
464 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len);
468 if (!err)
478 int err;
484 err = crypto_shash_export(src, state);
485 if (err)
488 err = crypto_shash_import(target, state);
493 return err;