Lines Matching refs:Nb
539 // are 2d arrays of the form state[4][Nb].
542 // The number of rounds for the cipher, indexed by [Nk][Nb]
547 // The number of bytes to shift by in shiftRow, indexed by [Nb][row]
613 var Nb = blockSizeInBits / 32;
614 var Nr = roundsArray[Nk][Nb];
647 for (var j = 0; j < Nb; j++) { state[i][j] = S[state[i][j]]; }
656 state[i] = cyclicShiftLeft(state[i], shiftOffsets[Nb][i]);
658 state[i] = cyclicShiftLeft(state[i], Nb - shiftOffsets[Nb][i]);
671 for (var j = 0; j < Nb; j++) { // Go through each column...
694 for (var j = 0; j < Nb; j++) { // Step through columns...
713 Nb = blockSizeInBits / 32;
714 Nr = roundsArray[Nk][Nb];
723 for (j = Nk; j < Nb * (Nr + 1); j++) { // For each word of expanded key
781 for (i=1; i<Nr; i++) { jcRound(block, expandedKey.slice(Nb*i, Nb*(i+1))); }
782 finalRound(block, expandedKey.slice(Nb*Nr));
797 inverseFinalRound(block, expandedKey.slice(Nb*Nr));
799 inverseRound(block, expandedKey.slice(Nb*i, Nb*(i+1)));