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