Lines Matching defs:AES_BLOCK_SIZE
171 # define AES_BLOCK_SIZE 16
184 unsigned char iv[AES_BLOCK_SIZE]; /* Initialization vector */
312 memcpy(cdata->iv, EVP_CIPHER_CTX_iv(ctx), AES_BLOCK_SIZE);
314 memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), cdata->iv, AES_BLOCK_SIZE);
328 if (chunk >= AES_BLOCK_SIZE)
332 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
336 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
342 EVP_CIPHER_CTX_set_num(ctx, chunk % AES_BLOCK_SIZE);
348 memcpy(cdata->iv, EVP_CIPHER_CTX_iv(ctx), AES_BLOCK_SIZE);
350 if ((chunk = nbytes & ~(AES_BLOCK_SIZE - 1))) {
384 memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), cdata->iv, AES_BLOCK_SIZE);
402 if (chunk >= AES_BLOCK_SIZE)
405 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
410 EVP_CIPHER_CTX_set_num(ctx, chunk % AES_BLOCK_SIZE);
416 memcpy(cdata->iv, EVP_CIPHER_CTX_iv(ctx), AES_BLOCK_SIZE);
418 if ((chunk = nbytes & ~(AES_BLOCK_SIZE - 1))) {
439 memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), cdata->iv, AES_BLOCK_SIZE);
449 memcpy(ctx->iv, ivec, AES_BLOCK_SIZE);
450 padlock_ctr32_encrypt(out, in, ctx, AES_BLOCK_SIZE * blocks);
469 # define EVP_CIPHER_block_size_ECB AES_BLOCK_SIZE
470 # define EVP_CIPHER_block_size_CBC AES_BLOCK_SIZE
489 AES_BLOCK_SIZE) \