Lines Matching defs:bs
58 int bs = sizeof(key1);
63 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs);
64 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2);
67 return crypto_cipher_setkey(ctx->child, key1, bs);
75 int bs = crypto_shash_blocksize(pdesc->tfm);
76 u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs;
79 memset(prev, 0, bs);
92 int bs = crypto_shash_blocksize(parent);
94 u8 *prev = odds + bs;
97 if ((ctx->len + len) <= bs) {
104 memcpy(odds + ctx->len, p, bs - ctx->len);
105 len -= bs - ctx->len;
106 p += bs - ctx->len;
108 crypto_xor(prev, odds, bs);
115 while (len > bs) {
116 crypto_xor(prev, p, bs);
118 p += bs;
119 len -= bs;
138 int bs = crypto_shash_blocksize(parent);
141 u8 *prev = odds + bs;
144 if (ctx->len != bs) {
151 rlen = bs - ctx->len -1;
155 offset += bs;
158 crypto_xor(prev, odds, bs);
159 crypto_xor(prev, consts + offset, bs);