Lines Matching refs:bl
82 static void make_kn(unsigned char *k1, unsigned char *l, int bl)
86 for (i = 0; i < bl; i++)
89 if (i < bl - 1 && l[i + 1] & 0x80)
94 k1[bl - 1] ^= bl == 16 ? 0x87 : 0x1b;
138 int bl;
143 bl = EVP_CIPHER_CTX_block_size(&in->cctx);
144 memcpy(out->k1, in->k1, bl);
145 memcpy(out->k2, in->k2, bl);
146 memcpy(out->tbl, in->tbl, bl);
147 memcpy(out->last_block, in->last_block, bl);
192 int bl;
199 bl = EVP_CIPHER_CTX_block_size(&ctx->cctx);
200 if (!EVP_Cipher(&ctx->cctx, ctx->tbl, zero_iv, bl))
202 make_kn(ctx->k1, ctx->tbl, bl);
203 make_kn(ctx->k2, ctx->k1, bl);
204 OPENSSL_cleanse(ctx->tbl, bl);
209 memset(ctx->tbl, 0, bl);
218 size_t bl;
227 bl = EVP_CIPHER_CTX_block_size(&ctx->cctx);
232 nleft = bl - ctx->nlast_block;
243 if (!EVP_Cipher(&ctx->cctx, ctx->tbl, ctx->last_block,bl))
247 while(dlen > bl)
249 if (!EVP_Cipher(&ctx->cctx, ctx->tbl, data, bl))
251 dlen -= bl;
252 data += bl;
263 int i, bl, lb;
270 bl = EVP_CIPHER_CTX_block_size(&ctx->cctx);
271 *poutlen = (size_t)bl;
276 if (lb == bl)
278 for (i = 0; i < bl; i++)
284 if (bl - lb > 1)
285 memset(ctx->last_block + lb + 1, 0, bl - lb - 1);
286 for (i = 0; i < bl; i++)
289 if (!EVP_Cipher(&ctx->cctx, out, out, bl))
291 OPENSSL_cleanse(out, bl);