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