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()
75 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init() local
76 u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs; in crypto_xcbc_digest_init()
79 memset(prev, 0, bs); in crypto_xcbc_digest_init()
92 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_update() local
94 u8 *prev = odds + bs; in crypto_xcbc_digest_update()
97 if ((ctx->len + len) <= bs) { in crypto_xcbc_digest_update()
104 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_xcbc_digest_update()
105 len -= bs - ctx->len; in crypto_xcbc_digest_update()
106 p += bs - ctx->len; in crypto_xcbc_digest_update()
108 crypto_xor(prev, odds, bs); in crypto_xcbc_digest_update()
115 while (len > bs) { in crypto_xcbc_digest_update()
116 crypto_xor(prev, p, bs); in crypto_xcbc_digest_update()
118 p += bs; in crypto_xcbc_digest_update()
119 len -= bs; in crypto_xcbc_digest_update()
138 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_final() local
141 u8 *prev = odds + bs; in crypto_xcbc_digest_final()
144 if (ctx->len != bs) { in crypto_xcbc_digest_final()
151 rlen = bs - ctx->len -1; in crypto_xcbc_digest_final()
155 offset += bs; in crypto_xcbc_digest_final()
158 crypto_xor(prev, odds, bs); in crypto_xcbc_digest_final()
159 crypto_xor(prev, consts + offset, bs); in crypto_xcbc_digest_final()