@@ -364,7 +364,7 @@ private static class Output {
364364 private final int blockLength ;
365365 private final int flags ;
366366
367- Output (
367+ private Output (
368368 final int [] inputChainingValue , final int [] blockWords , final long counter , final int blockLength ,
369369 final int flags ) {
370370 this .inputChainingValue = inputChainingValue ;
@@ -374,12 +374,12 @@ private static class Output {
374374 this .flags = flags ;
375375 }
376376
377- int [] chainingValue () {
377+ private int [] chainingValue () {
378378 return Arrays
379379 .copyOf (compress (inputChainingValue , blockWords , blockLength , counter , flags ), CHAINING_VALUE_INTS );
380380 }
381381
382- void rootOutputBytes (final byte [] out , int offset , int length ) {
382+ private void rootOutputBytes (final byte [] out , int offset , int length ) {
383383 int outputBlockCounter = 0 ;
384384 while (length > 0 ) {
385385 int chunkLength = Math .min (OUT_LEN * 2 , length );
@@ -406,21 +406,21 @@ private static class ChunkState {
406406 private int blockLength ;
407407 private int blocksCompressed ;
408408
409- ChunkState (final int [] key , final long chunkCounter , final int flags ) {
409+ private ChunkState (final int [] key , final long chunkCounter , final int flags ) {
410410 chainingValue = key ;
411411 this .chunkCounter = chunkCounter ;
412412 this .flags = flags ;
413413 }
414414
415- int length () {
415+ private int length () {
416416 return BLOCK_LEN * blocksCompressed + blockLength ;
417417 }
418418
419- int startFlag () {
419+ private int startFlag () {
420420 return blocksCompressed == 0 ? CHUNK_START : 0 ;
421421 }
422422
423- void update (final byte [] input , int offset , int length ) {
423+ private void update (final byte [] input , int offset , int length ) {
424424 while (length > 0 ) {
425425 if (blockLength == BLOCK_LEN ) {
426426 // If the block buffer is full, compress it and clear it. More
@@ -443,7 +443,7 @@ void update(final byte[] input, int offset, int length) {
443443 }
444444 }
445445
446- Output output () {
446+ private Output output () {
447447 final int [] blockWords = unpackInts (block , BLOCK_INTS );
448448 final int outputFlags = flags | startFlag () | CHUNK_END ;
449449 return new Output (chainingValue , blockWords , chunkCounter , blockLength , outputFlags );
@@ -461,13 +461,13 @@ private static class EngineState {
461461 private int stackLen ;
462462 private ChunkState state ;
463463
464- EngineState (final int [] key , final int flags ) {
464+ private EngineState (final int [] key , final int flags ) {
465465 this .key = key ;
466466 this .flags = flags ;
467467 state = new ChunkState (key , 0 , flags );
468468 }
469469
470- void inputData (final byte [] in , int offset , int length ) {
470+ private void inputData (final byte [] in , int offset , int length ) {
471471 while (length > 0 ) {
472472 // If the current chunk is complete, finalize it and reset the
473473 // chunk state. More input is coming, so this chunk is not ROOT.
@@ -487,7 +487,7 @@ void inputData(final byte[] in, int offset, int length) {
487487 }
488488 }
489489
490- void outputHash (final byte [] out , final int offset , final int length ) {
490+ private void outputHash (final byte [] out , final int offset , final int length ) {
491491 // Starting with the Output from the current chunk, compute all the
492492 // parent chaining values along the right edge of the tree, until we
493493 // have the root Output.
@@ -500,7 +500,7 @@ void outputHash(final byte[] out, final int offset, final int length) {
500500 output .rootOutputBytes (out , offset , length );
501501 }
502502
503- void reset () {
503+ private void reset () {
504504 stackLen = 0 ;
505505 Arrays .fill (cvStack , null );
506506 state = new ChunkState (key , 0 , flags );
0 commit comments