Lines Matching refs:nbytes
314 const unsigned char *in_arg, size_t nbytes) in padlock_ecb_cipher() argument
317 ALIGNED_CIPHER_DATA(ctx), nbytes); in padlock_ecb_cipher()
322 const unsigned char *in_arg, size_t nbytes) in padlock_cbc_cipher() argument
328 if ((ret = padlock_cbc_encrypt(out_arg, in_arg, cdata, nbytes))) in padlock_cbc_cipher()
335 const unsigned char *in_arg, size_t nbytes) in padlock_cfb_cipher() argument
347 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { in padlock_cfb_cipher()
349 chunk++, nbytes--; in padlock_cfb_cipher()
351 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { in padlock_cfb_cipher()
354 ivp[chunk++] = c, nbytes--; in padlock_cfb_cipher()
360 if (nbytes == 0) in padlock_cfb_cipher()
365 if ((chunk = nbytes & ~(AES_BLOCK_SIZE - 1))) { in padlock_cfb_cipher()
368 nbytes -= chunk; in padlock_cfb_cipher()
371 if (nbytes) { in padlock_cfb_cipher()
376 EVP_CIPHER_CTX_set_num(ctx, nbytes); in padlock_cfb_cipher()
383 while (nbytes) { in padlock_cfb_cipher()
386 *(ivp++) = c, nbytes--; in padlock_cfb_cipher()
392 while (nbytes) { in padlock_cfb_cipher()
394 ivp++, nbytes--; in padlock_cfb_cipher()
406 const unsigned char *in_arg, size_t nbytes) in padlock_ofb_cipher() argument
420 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { in padlock_ofb_cipher()
422 chunk++, nbytes--; in padlock_ofb_cipher()
428 if (nbytes == 0) in padlock_ofb_cipher()
433 if ((chunk = nbytes & ~(AES_BLOCK_SIZE - 1))) { in padlock_ofb_cipher()
436 nbytes -= chunk; in padlock_ofb_cipher()
439 if (nbytes) { in padlock_ofb_cipher()
444 EVP_CIPHER_CTX_set_num(ctx, nbytes); in padlock_ofb_cipher()
448 while (nbytes) { in padlock_ofb_cipher()
450 ivp++, nbytes--; in padlock_ofb_cipher()
470 const unsigned char *in_arg, size_t nbytes) in padlock_ctr_cipher() argument
480 CRYPTO_ctr128_encrypt_ctr32(in_arg, out_arg, nbytes, in padlock_ctr_cipher()