Home | History | Annotate | Download | only in sunspider-0.9.1

Lines Matching refs:Array

6  *   takes   byte-array 'input' (16 bytes)
7 * 2D byte-array key schedule 'w' (Nr+1 x Nb bytes)
11 * returns byte-array encrypted value (16 bytes)
17 var state = [[],[],[],[]]; // initialise 4xNb byte-array 'state' with input [§3.4]
33 var output = new Array(4*Nb); // convert state to 1-d array before returning [§3.4]
48 var t = new Array(4);
59 var a = new Array(4); // 'a' is a copy of the current column from 's'
60 var b = new Array(4); // 'b' is a?{02} in GF(2^8)
83 function KeyExpansion(key) { // generate Key Schedule (byte-array Nr+1 x Nb) from Key [§5.2]
88 var w = new Array(Nb*(Nr+1));
89 var temp = new Array(4);
97 w[i] = new Array(4);
170 var pwBytes = new Array(nBytes);
178 var counterBlock = new Array(blockSize); // block size fixed at 16 bytes / 128 bits (Nb=4) for AES
189 var ciphertext = new Array(blockCount); // ciphertext as array of strings
218 // use '-' to separate blocks, use Array.join to concatenate arrays of strings for efficiency
234 var pwBytes = new Array(nBytes);
242 ciphertext = ciphertext.split('-'); // split ciphertext into array of block-length strings
246 var counterBlock = new Array(blockSize);
250 var plaintext = new Array(ciphertext.length-1);
295 str = encodeUTF8(str); // encode multi-byte chars into UTF-8 for byte-array
340 return decodeUTF8(enc); // decode UTF-8 byte-array back to Unicode
376 function byteArrayToHexStr(b) { // convert byte array to hex string for displaying test vectors