Lines Matching refs:bs

59 	unsigned int bs = crypto_shash_blocksize(parent);  in crypto_cmac_digest_setkey()  local
70 memset(consts, 0, bs); in crypto_cmac_digest_setkey()
73 switch (bs) { in crypto_cmac_digest_setkey()
112 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_cmac_digest_init() local
113 u8 *prev = PTR_ALIGN((void *)ctx->ctx, alignmask + 1) + bs; in crypto_cmac_digest_init()
116 memset(prev, 0, bs); in crypto_cmac_digest_init()
129 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_update() local
131 u8 *prev = odds + bs; in crypto_cmac_digest_update()
134 if ((ctx->len + len) <= bs) { in crypto_cmac_digest_update()
141 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_cmac_digest_update()
142 len -= bs - ctx->len; in crypto_cmac_digest_update()
143 p += bs - ctx->len; in crypto_cmac_digest_update()
145 crypto_xor(prev, odds, bs); in crypto_cmac_digest_update()
152 while (len > bs) { in crypto_cmac_digest_update()
153 crypto_xor(prev, p, bs); in crypto_cmac_digest_update()
155 p += bs; in crypto_cmac_digest_update()
156 len -= bs; in crypto_cmac_digest_update()
175 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_final() local
178 u8 *prev = odds + bs; in crypto_cmac_digest_final()
181 if (ctx->len != bs) { in crypto_cmac_digest_final()
188 rlen = bs - ctx->len - 1; in crypto_cmac_digest_final()
192 offset += bs; in crypto_cmac_digest_final()
195 crypto_xor(prev, odds, bs); in crypto_cmac_digest_final()
196 crypto_xor(prev, consts + offset, bs); in crypto_cmac_digest_final()