Home
last modified time | relevance | path

Searched refs:hmac (Results 1 – 8 of 8) sorted by relevance

/fs/ubifs/
Dauth.c54 u8 *hmac) in ubifs_hash_calc_hmac() argument
61 err = crypto_shash_digest(shash, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac()
96 err = ubifs_hash_calc_hmac(c, hash, auth->hmac); in ubifs_prepare_auth_node()
404 int len, int ofs_hmac, void *hmac) in ubifs_node_calc_hmac() argument
432 return crypto_shash_final(shash, hmac); in ubifs_node_calc_hmac()
467 u8 *hmac; in __ubifs_node_verify_hmac() local
470 hmac = kmalloc(hmac_len, GFP_NOFS); in __ubifs_node_verify_hmac()
471 if (!hmac) in __ubifs_node_verify_hmac()
474 err = ubifs_node_calc_hmac(c, node, len, ofs_hmac, hmac); in __ubifs_node_verify_hmac()
476 kfree(hmac); in __ubifs_node_verify_hmac()
[all …]
Dmaster.c28 int hmac_offs = offsetof(struct ubifs_mst_node, hmac); in ubifs_compare_master_node()
138 if (ubifs_hmac_zero(c, c->mst_node->hmac)) { in scan_for_master()
146 offsetof(struct ubifs_mst_node, hmac)); in scan_for_master()
461 offsetof(struct ubifs_mst_node, hmac)); in ubifs_write_master()
473 offsetof(struct ubifs_mst_node, hmac)); in ubifs_write_master()
Dubifs-media.h678 __u8 hmac[UBIFS_MAX_HMAC_LEN]; member
754 __u8 hmac[UBIFS_MAX_HMAC_LEN]; member
781 __u8 hmac[]; member
Dsb.c322 offsetof(struct ubifs_sb_node, hmac)); in create_default_filesystem()
342 offsetof(struct ubifs_mst_node, hmac)); in create_default_filesystem()
347 0, offsetof(struct ubifs_mst_node, hmac)); in create_default_filesystem()
586 if (ubifs_hmac_zero(c, sup->hmac)) { in authenticate_sb_node()
598 hmac)); in authenticate_sb_node()
620 offsetof(struct ubifs_sb_node, hmac), 1); in ubifs_write_sb_node()
Dreplay.c573 static int authenticate_sleb_hmac(struct ubifs_info *c, u8 *hash, u8 *hmac) in authenticate_sleb_hmac() argument
579 return crypto_shash_digest(hmac_desc, hash, c->hash_len, hmac); in authenticate_sleb_hmac()
606 u8 hmac[UBIFS_HMAC_ARR_SZ]; in authenticate_sleb() local
622 err = authenticate_sleb_hmac(c, hash, hmac); in authenticate_sleb()
626 err = ubifs_check_hmac(c, auth->hmac, hmac); in authenticate_sleb()
Dubifs.h1692 bool ubifs_hmac_zero(struct ubifs_info *c, const u8 *hmac);
1694 int ubifs_hmac_wkm(struct ubifs_info *c, u8 *hmac);
Drecovery.c204 offsetof(struct ubifs_mst_node, hmac), 1); in write_rcvrd_mst_node()
Dsuper.c1416 if (ubifs_authenticated(c) && ubifs_hmac_zero(c, c->sup_node->hmac)) { in mount_ubifs()