function hmacchunkblock(hmac,block) {
		if (toType(block)=='uint8array') {
			var l=block.length, s;
			//console.log(l);
			for (var i=0; i<l; i+=chunksize) {
				//var end = ( (i+chunksize)< l) ? i+chunksize: l;
				//var s=arrayToString(block.subarray(i,end));
				//console.log("updating with:"+s);
				//console.log(s.length);
				s=arrayToString(block.subarray(i,i+chunksize));
				hmac.update(s);
			}
		} else {
			hmac.update(block);
		}
	}
//same thing, but use existing hmac, and don't finish
same thing, but use existing hmac, and don't finish
same thing but use existing hmac and don ' t finish
function hmacchunkblock(hmac,block) {
		if (toType(block)=='uint8array') {
			var l=block.length, s;
			for (var i=0; i<l; i+=chunksize) {
				s=arrayToString(block.subarray(i,i+chunksize));
				hmac.update(s);
			}
		} else {
			hmac.update(block);
		}
	}
function hmacchunkblock ( hmac , block ) { if ( toType ( block ) == 'uint8array' ) { var l = block . length , s ; for ( var i = 0 ; i < l ; i += chunksize ) { s = arrayToString ( block . subarray ( i , i + chunksize ) ) ; hmac . update ( s ) ; } } else { hmac . update ( block ) ; } }
same thing, but use existing hmac, and don't finish
same thing but use existing hmac and don ' t finish
//console.log(l); //var end = ( (i+chunksize)< l) ? i+chunksize: l; //var s=arrayToString(block.subarray(i,end)); //console.log("updating with:"+s); //console.log(s.length);