Lines Matching defs:nbytes
369 int nbytes = walk.nbytes;
373 if (unlikely(nbytes > 0 && nbytes < AES_BLOCK_SIZE)) {
374 src = dst = memcpy(buf + sizeof(buf) - nbytes,
375 src, nbytes);
376 } else if (nbytes < walk.total) {
377 nbytes &= ~(AES_BLOCK_SIZE - 1);
382 pmull_gcm_encrypt(nbytes, dst, src, ctx->ghash_key.h,
387 if (unlikely(!nbytes))
390 if (unlikely(nbytes > 0 && nbytes < AES_BLOCK_SIZE))
392 buf + sizeof(buf) - nbytes, nbytes);
394 err = skcipher_walk_done(&walk, walk.nbytes - nbytes);
395 } while (walk.nbytes);
397 while (walk.nbytes >= AES_BLOCK_SIZE) {
398 int blocks = walk.nbytes / AES_BLOCK_SIZE;
416 walk.nbytes % AES_BLOCK_SIZE);
420 if (walk.nbytes) {
424 buf, walk.nbytes);
426 memcpy(buf, walk.dst.virt.addr, walk.nbytes);
427 memset(buf + walk.nbytes, 0, sizeof(buf) - walk.nbytes);
432 walk.nbytes ? buf : NULL);
434 if (walk.nbytes)
483 int nbytes = walk.nbytes;
487 if (unlikely(nbytes > 0 && nbytes < AES_BLOCK_SIZE)) {
488 src = dst = memcpy(buf + sizeof(buf) - nbytes,
489 src, nbytes);
490 } else if (nbytes < walk.total) {
491 nbytes &= ~(AES_BLOCK_SIZE - 1);
496 pmull_gcm_decrypt(nbytes, dst, src, ctx->ghash_key.h,
501 if (unlikely(!nbytes))
504 if (unlikely(nbytes > 0 && nbytes < AES_BLOCK_SIZE))
506 buf + sizeof(buf) - nbytes, nbytes);
508 err = skcipher_walk_done(&walk, walk.nbytes - nbytes);
509 } while (walk.nbytes);
511 while (walk.nbytes >= AES_BLOCK_SIZE) {
512 int blocks = walk.nbytes / AES_BLOCK_SIZE;
529 walk.nbytes % AES_BLOCK_SIZE);
533 if (walk.nbytes) {
534 memcpy(buf, walk.src.virt.addr, walk.nbytes);
535 memset(buf + walk.nbytes, 0, sizeof(buf) - walk.nbytes);
540 walk.nbytes ? buf : NULL);
542 if (walk.nbytes) {
546 buf, walk.nbytes);