Lines Matching refs:bs
58 int bs = sizeof(key1); in crypto_xcbc_digest_setkey() local
63 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey()
64 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey()
67 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey()
74 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init() local
75 u8 *prev = &ctx->odds[bs]; in crypto_xcbc_digest_init()
78 memset(prev, 0, bs); in crypto_xcbc_digest_init()
90 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_update() local
92 u8 *prev = odds + bs; in crypto_xcbc_digest_update()
95 if ((ctx->len + len) <= bs) { in crypto_xcbc_digest_update()
102 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_xcbc_digest_update()
103 len -= bs - ctx->len; in crypto_xcbc_digest_update()
104 p += bs - ctx->len; in crypto_xcbc_digest_update()
106 crypto_xor(prev, odds, bs); in crypto_xcbc_digest_update()
113 while (len > bs) { in crypto_xcbc_digest_update()
114 crypto_xor(prev, p, bs); in crypto_xcbc_digest_update()
116 p += bs; in crypto_xcbc_digest_update()
117 len -= bs; in crypto_xcbc_digest_update()
135 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_final() local
137 u8 *prev = odds + bs; in crypto_xcbc_digest_final()
140 if (ctx->len != bs) { in crypto_xcbc_digest_final()
147 rlen = bs - ctx->len -1; in crypto_xcbc_digest_final()
151 offset += bs; in crypto_xcbc_digest_final()
154 crypto_xor(prev, odds, bs); in crypto_xcbc_digest_final()
155 crypto_xor(prev, &tctx->consts[offset], bs); in crypto_xcbc_digest_final()