Lines Matching refs:bs
56 void (*xor)(u8 *a, const u8 *b, unsigned int bs);
61 static void xor_128(u8 *a, const u8 *b, unsigned int bs)
72 int bs = crypto_hash_blocksize(parent);
74 u8 key1[bs];
81 return crypto_cipher_setkey(ctx->child, key1, bs);
102 int bs = crypto_hash_blocksize(pdesc->tfm);
105 memset(ctx->odds, 0, bs);
106 memset(ctx->prev, 0, bs);
118 int bs = crypto_hash_blocksize(parent);
132 if ((ctx->len + len) <= bs) {
150 memcpy(ctx->odds + ctx->len, p, bs - ctx->len);
151 len -= bs - ctx->len;
152 p += bs - ctx->len;
154 ctx->xor(ctx->prev, ctx->odds, bs);
161 while (len > bs) {
162 ctx->xor(ctx->prev, p, bs);
165 p += bs;
166 len -= bs;
201 int bs = crypto_hash_blocksize(parent);
204 if (ctx->len == bs) {
205 u8 key2[bs];
211 (u8 *)(ctx->consts + bs));
213 ctx->xor(ctx->prev, ctx->odds, bs);
214 ctx->xor(ctx->prev, key2, bs);
219 u8 key3[bs];
225 rlen = bs - ctx->len -1;
233 (u8 *)(ctx->consts + bs * 2));
235 ctx->xor(ctx->prev, ctx->odds, bs);
236 ctx->xor(ctx->prev, key3, bs);
263 int bs = crypto_hash_blocksize(__crypto_hash_cast(tfm));
269 switch(bs) {
279 ctx->prev = ctx->odds + bs;
280 ctx->key = ctx->prev + bs;