• Home
  • Raw
  • Download

Lines Matching refs:bs

55 	unsigned int bs = crypto_shash_blocksize(parent);  in crypto_cmac_digest_setkey()  local
67 memset(consts, 0, bs); in crypto_cmac_digest_setkey()
70 switch (bs) { in crypto_cmac_digest_setkey()
109 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_cmac_digest_init() local
110 u8 *prev = PTR_ALIGN((void *)ctx->ctx, alignmask + 1) + bs; in crypto_cmac_digest_init()
113 memset(prev, 0, bs); in crypto_cmac_digest_init()
126 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_update() local
128 u8 *prev = odds + bs; in crypto_cmac_digest_update()
131 if ((ctx->len + len) <= bs) { in crypto_cmac_digest_update()
138 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_cmac_digest_update()
139 len -= bs - ctx->len; in crypto_cmac_digest_update()
140 p += bs - ctx->len; in crypto_cmac_digest_update()
142 crypto_xor(prev, odds, bs); in crypto_cmac_digest_update()
149 while (len > bs) { in crypto_cmac_digest_update()
150 crypto_xor(prev, p, bs); in crypto_cmac_digest_update()
152 p += bs; in crypto_cmac_digest_update()
153 len -= bs; in crypto_cmac_digest_update()
172 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_final() local
176 u8 *prev = odds + bs; in crypto_cmac_digest_final()
179 if (ctx->len != bs) { in crypto_cmac_digest_final()
186 rlen = bs - ctx->len - 1; in crypto_cmac_digest_final()
190 offset += bs; in crypto_cmac_digest_final()
193 crypto_xor(prev, odds, bs); in crypto_cmac_digest_final()
194 crypto_xor(prev, consts + offset, bs); in crypto_cmac_digest_final()