Lines Matching refs:desc
496 SHASH_DESC_ON_STACK(desc, ic->journal_mac); in sb_mac()
505 desc->tfm = ic->journal_mac; in sb_mac()
507 r = crypto_shash_init(desc); in sb_mac()
513 r = crypto_shash_update(desc, (__u8 *)ic->sb, (1 << SECTOR_SHIFT) - size); in sb_mac()
520 r = crypto_shash_final(desc, (__u8 *)ic->sb + (1 << SECTOR_SHIFT) - size); in sb_mac()
528 r = crypto_shash_final(desc, result); in sb_mac()
792 SHASH_DESC_ON_STACK(desc, ic->journal_mac); in section_mac()
796 desc->tfm = ic->journal_mac; in section_mac()
798 r = crypto_shash_init(desc); in section_mac()
807 r = crypto_shash_update(desc, (__u8 *)&ic->sb->salt, SALT_SIZE); in section_mac()
814 r = crypto_shash_update(desc, (__u8 *)§ion_le, sizeof(section_le)); in section_mac()
824 r = crypto_shash_update(desc, (__u8 *)&je->u.sector, sizeof(je->u.sector)); in section_mac()
834 r = crypto_shash_final(desc, result); in section_mac()
847 r = crypto_shash_final(desc, digest); in section_mac()