File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
core/src/main/java/org/bouncycastle/crypto/engines Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 11package org .bouncycastle .crypto .engines ;
22
3- import org .bouncycastle .crypto .DataLengthException ;
43import org .bouncycastle .util .Arrays ;
54import org .bouncycastle .util .Pack ;
65
@@ -63,8 +62,7 @@ private void initGrain(int[] auth)
6362 {
6463 for (int remainder = 0 ; remainder < 32 ; ++remainder )
6564 {
66- int output = getByteKeyStream ();
67- auth [quotient ] |= output << remainder ;
65+ auth [quotient ] |= getByteKeyStream () << remainder ;
6866 }
6967 }
7068 }
@@ -258,9 +256,9 @@ protected void processFinalAAD()
258256 ader = new byte [1 + aderlen ];
259257 ader [0 ] = (byte )(0x80 | aderlen );
260258 int tmp = len ;
261- for (int i = 0 ; i < aderlen ; ++i )
259+ for (int i = 1 ; i < ader . length ; ++i )
262260 {
263- ader [1 + i ] = (byte )tmp ;
261+ ader [i ] = (byte )tmp ;
264262 tmp >>>= 8 ;
265263 }
266264 }
@@ -277,8 +275,7 @@ private void absorbAadData(byte[] ader, int len)
277275 for (int j = 0 ; j < 8 ; ++j )
278276 {
279277 shift ();
280- int ader_i_j = (ader_i >> j ) & 1 ;
281- updateInternalState (ader_i_j );
278+ updateInternalState ((ader_i >> j ) & 1 );
282279 }
283280 }
284281 }
You can’t perform that action at this time.
0 commit comments