My bad. It seems I forgot to add the new file to the example after refactoring.
Tankred Am 19.05.2012 08:27 schrieb "Sean Colyer" <[email protected]>: > A bit ago there was a slight restructuring that added: > openpgp.crypto.sym.js. This file was not being imported in the tests. I've > added this to the tests you were running into. Try pulling the latest > version and see if that helps. > > Sean > > On Fri, May 18, 2012 at 6:50 PM, Dolf Schimmel < > reply+i-4650869-0583831b557f308040e3839442d159d9a8b02b62-475...@reply.github.com > > wrote: > >> I am trying to run the test/encryption.html file straight from the repo. >> When trying to decrypt a signed+encrypted message I get this error however: >> >> ```text >> Uncaught exception: ReferenceError: Undefined variable: >> openpgp_crypto_symmetricDecrypt >> >> Error thrown at line 121, column 2 in decrypt(symmetric_algorithm_type, >> key) in >> file://localhost/home/dolf/Projects/OpenPGPjs/src/packet/openpgp.packet.encryptedintegrityprotecteddata.js: >> this.decryptedData = openpgp_crypto_symmetricDecrypt( >> called from line 185, column 4 in decrypt(msg, key) in >> file://localhost/home/dolf/Projects/OpenPGPjs/src/packet/openpgp.packet.encryptedsessionkey.js: >> return msg.encryptedData.decrypt(algo, sesskey); >> called from line 48, column 2 in decryptAndVerifySignature(private_key, >> sessionkey, pubkey) in >> file://localhost/home/dolf/Projects/OpenPGPjs/src/openpgp.msg.message.js: >> var decrypted = sessionkey.decrypt(this, private_key.keymaterial); >> called from line 34, column 8 in decrypt(private_key, sessionkey) in >> file://localhost/home/dolf/Projects/OpenPGPjs/src/openpgp.msg.message.js: >> return this.decryptAndVerifySignature(private_key, sessionkey).text; >> called from line 73, column 3 in run(encrypt) in >> file://localhost/home/dolf/Projects/OpenPGPjs/test/encryption.html: >> $('#messageoutput').text(msg[0].decrypt(keymat, sesskey)); >> called from line 1, column 0 in <anonymous function>(event) in >> file://localhost/home/dolf/Projects/OpenPGPjs/test/encryption.html: >> run(false) >> ``` >> >> Any thoughts? >> >> * Platform 64 bit linux >> * browser: opera 11.64 / firefox 12 >> * version: latest commit in master >> >> --- >> Reply to this email directly or view it on GitHub: >> https://github.com/openpgpjs/openpgpjs/issues/42 >> > > > _______________________________________________ > > http://openpgpjs.org > >
_______________________________________________ http://openpgpjs.org

