Lines Matching refs:bs
45 int bs = sizeof(key1); in crypto_xcbc_digest_setkey() local
50 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey()
51 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey()
54 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey()
60 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init() local
63 memset(prev, 0, bs); in crypto_xcbc_digest_init()
73 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_update() local
77 crypto_xor(prev, p, bs); in crypto_xcbc_digest_update()
79 p += bs; in crypto_xcbc_digest_update()
80 len -= bs; in crypto_xcbc_digest_update()
81 } while (len >= bs); in crypto_xcbc_digest_update()
91 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_finup() local
96 if (len != bs) { in crypto_xcbc_digest_finup()
98 offset += bs; in crypto_xcbc_digest_finup()
100 crypto_xor(prev, &tctx->consts[offset], bs); in crypto_xcbc_digest_finup()