Lines Matching refs:AES_BLOCK_SIZE

256 #    define AES_BLOCK_SIZE          16
269 unsigned char iv[AES_BLOCK_SIZE]; /* Initialization vector */
685 # define EVP_CIPHER_block_size_ECB AES_BLOCK_SIZE
686 # define EVP_CIPHER_block_size_CBC AES_BLOCK_SIZE
699 AES_BLOCK_SIZE, \
874 padlock_xcrypt_ecb(nbytes / AES_BLOCK_SIZE, cdata, out_arg, in_arg);
878 memcpy(cdata->iv, ctx->iv, AES_BLOCK_SIZE);
879 iv = padlock_xcrypt_cbc(nbytes / AES_BLOCK_SIZE, cdata, out_arg,
881 memcpy(ctx->iv, iv, AES_BLOCK_SIZE);
885 memcpy(cdata->iv, ctx->iv, AES_BLOCK_SIZE);
886 iv = padlock_xcrypt_cfb(nbytes / AES_BLOCK_SIZE, cdata, out_arg,
888 memcpy(ctx->iv, iv, AES_BLOCK_SIZE);
892 memcpy(cdata->iv, ctx->iv, AES_BLOCK_SIZE);
893 padlock_xcrypt_ofb(nbytes / AES_BLOCK_SIZE, cdata, out_arg, in_arg);
894 memcpy(ctx->iv, cdata->iv, AES_BLOCK_SIZE);
901 memset(cdata->iv, 0, AES_BLOCK_SIZE);
936 if (chunk >= AES_BLOCK_SIZE)
940 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
944 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
950 ctx->num = chunk % AES_BLOCK_SIZE;
953 if (chunk >= AES_BLOCK_SIZE)
956 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
961 ctx->num = chunk % AES_BLOCK_SIZE;
969 if (nbytes % AES_BLOCK_SIZE)
973 * nbytes is always multiple of AES_BLOCK_SIZE in ECB and CBC modes and
990 if (!padlock_aes_align_required && (nbytes % AES_BLOCK_SIZE) == 0)
1003 if (!realign_in_loop && (nbytes % AES_BLOCK_SIZE) == 0)
1032 padlock_xcrypt_ecb(chunk / AES_BLOCK_SIZE, cdata, out, inp);
1045 memcpy(cdata->iv, ctx->iv, AES_BLOCK_SIZE);
1049 memcpy(cdata->iv, iv, AES_BLOCK_SIZE);
1058 iv = padlock_xcrypt_cbc(chunk / AES_BLOCK_SIZE, cdata, out, inp);
1066 memcpy(ctx->iv, iv, AES_BLOCK_SIZE);
1070 memcpy(iv = cdata->iv, ctx->iv, AES_BLOCK_SIZE);
1071 chunk &= ~(AES_BLOCK_SIZE - 1);
1078 memcpy(cdata->iv, iv, AES_BLOCK_SIZE);
1087 iv = padlock_xcrypt_cfb(chunk / AES_BLOCK_SIZE, cdata, out, inp);
1095 } while (nbytes >= AES_BLOCK_SIZE);
1102 memcpy(ivp, iv, AES_BLOCK_SIZE);
1128 memcpy(ctx->iv, iv, AES_BLOCK_SIZE);
1132 memcpy(cdata->iv, ctx->iv, AES_BLOCK_SIZE);
1133 chunk &= ~(AES_BLOCK_SIZE - 1);
1142 padlock_xcrypt_ofb(chunk / AES_BLOCK_SIZE, cdata, out, inp);
1151 } while (nbytes >= AES_BLOCK_SIZE);
1166 memcpy(ctx->iv, cdata->iv, AES_BLOCK_SIZE);
1181 memset(cdata->iv, 0, AES_BLOCK_SIZE);