diff --git a/src/ciphers/openpgp.crypto.js b/src/ciphers/openpgp.crypto.js index 5106651e..0a61b71e 100644 --- a/src/ciphers/openpgp.crypto.js +++ b/src/ciphers/openpgp.crypto.js @@ -389,7 +389,6 @@ function openpgp_crypto_getRandomBigIntegerInRange(min, max) { //This is a test method to ensure that encryption/decryption with a given 1024bit RSAKey object functions as intended function openpgp_crypto_testRSA(key){ - debugger; var rsa = new RSA(); var mpi = new openpgp_type_mpi(); mpi.create(openpgp_encoding_eme_pkcs1_encode('ABABABAB', 128)); diff --git a/src/compression/zlib/jsxcompressor.js b/src/compression/zlib/jsxcompressor.js index 23729126..1fdee266 100644 --- a/src/compression/zlib/jsxcompressor.js +++ b/src/compression/zlib/jsxcompressor.js @@ -343,9 +343,6 @@ JXG.Util.Unzip = function (barray){ X = currentTree[xtreepos]; } } - if (debug) - document.write("ret3"); - return -1; }; function DeflateLoop() { @@ -787,7 +784,7 @@ JXG.Util.Unzip.prototype.unzip = function() { CRC = 0xffffffff; SIZE = 0; - if (size = 0 && fileOut.charAt(fileout.length-1)=="/"){ + if (size == 0 && fileOut.charAt(fileout.length-1)=="/"){ //skipdir if (debug) alert("skipdir"); diff --git a/src/encoding/openpgp.encoding.asciiarmor.js b/src/encoding/openpgp.encoding.asciiarmor.js index 8903bc61..ede8443c 100644 --- a/src/encoding/openpgp.encoding.asciiarmor.js +++ b/src/encoding/openpgp.encoding.asciiarmor.js @@ -69,7 +69,7 @@ function openpgp_encoding_deArmor(text) { util.print_error("Ascii armor integrity check on message failed: '" + checksum + "' should be '" - + getCheckSum(data)) + "'"; + + getCheckSum(data) + "'"); return false; } } else { diff --git a/src/openpgp.msg.publickey.js b/src/openpgp.msg.publickey.js index 8293707d..6a1506ed 100644 --- a/src/openpgp.msg.publickey.js +++ b/src/openpgp.msg.publickey.js @@ -20,9 +20,6 @@ * @classdesc Decoded public key object for internal openpgp.js use */ function openpgp_msg_publickey() { - this.data; - this.position; - this.len; this.tostring = "OPENPGP PUBLIC KEY\n"; this.bindingSignature = null; this.publicKeyPacket = null; diff --git a/src/packet/openpgp.packet.keymaterial.js b/src/packet/openpgp.packet.keymaterial.js index b0357bba..32b7bf92 100644 --- a/src/packet/openpgp.packet.keymaterial.js +++ b/src/packet/openpgp.packet.keymaterial.js @@ -135,7 +135,7 @@ function openpgp_packet_keymaterial() { // - A two-octet number denoting the time in days that this key is // valid. If this number is zero, then it does not expire. - this.expiration = (input[mypos++].charCodeAt() << 8) & input[mypos++].charCodeAt(); + this.expiration = (input[mypos++].charCodeAt() << 8) | input[mypos++].charCodeAt(); // - A one-octet number denoting the public-key algorithm of this key. this.publicKeyAlgorithm = input[mypos++].charCodeAt();