function decipherblock (key,iv,block,skipend) {
		var decipher = forge.cipher.createDecipher('AES-CBC', key);
		decipher.start({iv: iv});
		decipher.update(forge.util.createBuffer(block));
		//too many negatives for a normal human brain (well, at least mine)
		// skip end of file padding if skipend = true;
		if (skipend!==true) decipher.finish();
		return decipher.output.data;
	}
/* decipher some crypttext.  skipend fixes the truncation problem that prompted much of the commented out code below */
decipher some crypttext.  skipend fixes the truncation problem that prompted much of the commented out code below
decipher some crypttext . skipend fixes the truncation problem that prompted much of the commented out code below
function decipherblock (key,iv,block,skipend) {
		var decipher = forge.cipher.createDecipher('AES-CBC', key);
		decipher.start({iv: iv});
		decipher.update(forge.util.createBuffer(block));
		if (skipend!==true) decipher.finish();
		return decipher.output.data;
	}
function decipherblock ( key , iv , block , skipend ) { var decipher = forge . cipher . createDecipher ( 'AES-CBC' , key ) ; decipher . start ( { iv : iv } ) ; decipher . update ( forge . util . createBuffer ( block ) ) ; if ( skipend !== true ) decipher . finish ( ) ; return decipher . output . data ; }
decipher some crypttext.
decipher some crypttext .
//too many negatives for a normal human brain (well, at least mine) // skip end of file padding if skipend = true;