Lines Matching defs:chunk
338 size_t chunk;
340 if ((chunk = EVP_CIPHER_CTX_get_num(ctx))) { /* borrow chunk variable */
343 if (chunk >= AES_BLOCK_SIZE)
347 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
348 ivp[chunk] = *(out_arg++) = *(in_arg++) ^ ivp[chunk];
349 chunk++, nbytes--;
351 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
353 *(out_arg++) = c ^ ivp[chunk];
354 ivp[chunk++] = c, nbytes--;
357 EVP_CIPHER_CTX_set_num(ctx, chunk % AES_BLOCK_SIZE);
365 if ((chunk = nbytes & ~(AES_BLOCK_SIZE - 1))) {
366 if (!padlock_cfb_encrypt(out_arg, in_arg, cdata, chunk))
368 nbytes -= chunk;
374 out_arg += chunk;
375 in_arg += chunk;
409 size_t chunk;
414 if ((chunk = EVP_CIPHER_CTX_get_num(ctx))) { /* borrow chunk variable */
417 if (chunk >= AES_BLOCK_SIZE)
420 while (chunk < AES_BLOCK_SIZE && nbytes != 0) {
421 *(out_arg++) = *(in_arg++) ^ ivp[chunk];
422 chunk++, nbytes--;
425 EVP_CIPHER_CTX_set_num(ctx, chunk % AES_BLOCK_SIZE);
433 if ((chunk = nbytes & ~(AES_BLOCK_SIZE - 1))) {
434 if (!padlock_ofb_encrypt(out_arg, in_arg, cdata, chunk))
436 nbytes -= chunk;
442 out_arg += chunk;
443 in_arg += chunk;