Lines Matching defs:nbytes
189 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) {
194 err = skcipher_walk_done(&walk, walk.nbytes % AES_BLOCK_SIZE);
209 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) {
214 err = skcipher_walk_done(&walk, walk.nbytes % AES_BLOCK_SIZE);
227 while ((blocks = (walk->nbytes / AES_BLOCK_SIZE))) {
232 err = skcipher_walk_done(walk, walk->nbytes % AES_BLOCK_SIZE);
256 while ((blocks = (walk->nbytes / AES_BLOCK_SIZE))) {
261 err = skcipher_walk_done(walk, walk->nbytes % AES_BLOCK_SIZE);
328 ctx->key_enc, rounds, walk.nbytes, walk.iv);
385 ctx->key_dec, rounds, walk.nbytes, walk.iv);
417 blocks = walk.nbytes / AES_BLOCK_SIZE;
424 err = skcipher_walk_done(&walk, walk.nbytes % AES_BLOCK_SIZE);
439 blocks = walk.nbytes / AES_BLOCK_SIZE;
446 err = skcipher_walk_done(&walk, walk.nbytes % AES_BLOCK_SIZE);
461 while (walk.nbytes > 0) {
463 unsigned int nbytes = walk.nbytes;
475 if (unlikely(nbytes < AES_BLOCK_SIZE))
476 src = dst = memcpy(buf + sizeof(buf) - nbytes,
477 src, nbytes);
478 else if (nbytes < walk.total)
479 nbytes &= ~(AES_BLOCK_SIZE - 1);
482 aes_xctr_encrypt(dst, src, ctx->key_enc, rounds, nbytes,
486 if (unlikely(nbytes < AES_BLOCK_SIZE))
488 buf + sizeof(buf) - nbytes, nbytes);
489 byte_ctr += nbytes;
491 err = skcipher_walk_done(&walk, walk.nbytes - nbytes);
506 while (walk.nbytes > 0) {
508 unsigned int nbytes = walk.nbytes;
520 if (unlikely(nbytes < AES_BLOCK_SIZE))
521 src = dst = memcpy(buf + sizeof(buf) - nbytes,
522 src, nbytes);
523 else if (nbytes < walk.total)
524 nbytes &= ~(AES_BLOCK_SIZE - 1);
527 aes_ctr_encrypt(dst, src, ctx->key_enc, rounds, nbytes,
531 if (unlikely(nbytes < AES_BLOCK_SIZE))
533 buf + sizeof(buf) - nbytes, nbytes);
535 err = skcipher_walk_done(&walk, walk.nbytes - nbytes);
557 if (unlikely(tail > 0 && walk.nbytes < walk.total)) {
576 for (first = 1; walk.nbytes >= AES_BLOCK_SIZE; first = 0) {
577 int nbytes = walk.nbytes;
579 if (walk.nbytes < walk.total)
580 nbytes &= ~(AES_BLOCK_SIZE - 1);
584 ctx->key1.key_enc, rounds, nbytes,
587 err = skcipher_walk_done(&walk, walk.nbytes - nbytes);
606 ctx->key1.key_enc, rounds, walk.nbytes,
629 if (unlikely(tail > 0 && walk.nbytes < walk.total)) {
648 for (first = 1; walk.nbytes >= AES_BLOCK_SIZE; first = 0) {
649 int nbytes = walk.nbytes;
651 if (walk.nbytes < walk.total)
652 nbytes &= ~(AES_BLOCK_SIZE - 1);
656 ctx->key1.key_dec, rounds, nbytes,
659 err = skcipher_walk_done(&walk, walk.nbytes - nbytes);
679 ctx->key1.key_dec, rounds, walk.nbytes,