Lines Matching refs:bs

66 	int bs = crypto_shash_blocksize(parent);  in crypto_xcbc_digest_setkey()  local
69 u8 key1[bs]; in crypto_xcbc_digest_setkey()
74 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey()
75 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey()
78 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey()
86 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init() local
87 u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs; in crypto_xcbc_digest_init()
90 memset(prev, 0, bs); in crypto_xcbc_digest_init()
103 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_update() local
105 u8 *prev = odds + bs; in crypto_xcbc_digest_update()
108 if ((ctx->len + len) <= bs) { in crypto_xcbc_digest_update()
115 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_xcbc_digest_update()
116 len -= bs - ctx->len; in crypto_xcbc_digest_update()
117 p += bs - ctx->len; in crypto_xcbc_digest_update()
119 crypto_xor(prev, odds, bs); in crypto_xcbc_digest_update()
126 while (len > bs) { in crypto_xcbc_digest_update()
127 crypto_xor(prev, p, bs); in crypto_xcbc_digest_update()
129 p += bs; in crypto_xcbc_digest_update()
130 len -= bs; in crypto_xcbc_digest_update()
149 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_final() local
152 u8 *prev = odds + bs; in crypto_xcbc_digest_final()
155 if (ctx->len != bs) { in crypto_xcbc_digest_final()
162 rlen = bs - ctx->len -1; in crypto_xcbc_digest_final()
166 offset += bs; in crypto_xcbc_digest_final()
169 crypto_xor(prev, odds, bs); in crypto_xcbc_digest_final()
170 crypto_xor(prev, consts + offset, bs); in crypto_xcbc_digest_final()