Lines Matching refs:bs
41 unsigned int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_setkey() local
52 memset(consts, 0, bs); in crypto_cmac_digest_setkey()
55 switch (bs) { in crypto_cmac_digest_setkey()
92 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_cmac_digest_init() local
95 memset(prev, 0, bs); in crypto_cmac_digest_init()
105 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_update() local
109 crypto_xor(prev, p, bs); in crypto_cmac_digest_update()
111 p += bs; in crypto_cmac_digest_update()
112 len -= bs; in crypto_cmac_digest_update()
113 } while (len >= bs); in crypto_cmac_digest_update()
123 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_finup() local
128 if (len != bs) { in crypto_cmac_digest_finup()
130 offset += bs; in crypto_cmac_digest_finup()
132 crypto_xor(prev, (const u8 *)tctx->consts + offset, bs); in crypto_cmac_digest_finup()