Lines Matching refs:bs
59 int bs = sizeof(key1); in crypto_xcbc_digest_setkey() local
64 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey()
65 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey()
68 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey()
76 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init() local
77 u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs; in crypto_xcbc_digest_init()
80 memset(prev, 0, bs); in crypto_xcbc_digest_init()
93 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_update() local
95 u8 *prev = odds + bs; in crypto_xcbc_digest_update()
98 if ((ctx->len + len) <= bs) { in crypto_xcbc_digest_update()
105 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_xcbc_digest_update()
106 len -= bs - ctx->len; in crypto_xcbc_digest_update()
107 p += bs - ctx->len; in crypto_xcbc_digest_update()
109 crypto_xor(prev, odds, bs); in crypto_xcbc_digest_update()
116 while (len > bs) { in crypto_xcbc_digest_update()
117 crypto_xor(prev, p, bs); in crypto_xcbc_digest_update()
119 p += bs; in crypto_xcbc_digest_update()
120 len -= bs; in crypto_xcbc_digest_update()
139 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_final() local
142 u8 *prev = odds + bs; in crypto_xcbc_digest_final()
145 if (ctx->len != bs) { in crypto_xcbc_digest_final()
152 rlen = bs - ctx->len -1; in crypto_xcbc_digest_final()
156 offset += bs; in crypto_xcbc_digest_final()
159 crypto_xor(prev, odds, bs); in crypto_xcbc_digest_final()
160 crypto_xor(prev, consts + offset, bs); in crypto_xcbc_digest_final()