I forgot. You can reconstruct the issue with the following unit test... just rerun it several times:
https://safewith-me.appspot.com/test/?filter=Asymmetric%20Crypto%3A%20Generate%20keys Cheers, Tankred Am 30. März 2012 12:08 schrieb Tankred Hase <[email protected]>: > Hi Sean, > > here's a sample keypair where decryption of even a small string takes over > 2000 ms. Alot of time is spent in the method > 'keymat.keymaterial.decryptSecretMPIs(passphrase)' > > The passphrase is 'asdfasdf', > > Tankred > > -----BEGIN PGP PUBLIC KEY BLOCK----- Version: OpenPGP.js v0.1 Comment: > http://openpgpjs.orgxsBNBE90JR0BB/9qIX3maW5LQxIh57xpmX3ZYSXrPyhkTJOyPESXpriex3yZ > ygmH21LTV9St/L+KrxkLkzfEhI+q+Px6OyWMNPePMezfKFiDkfxce6pTj5FO > amBDPDB1/jptmwo4/zbbe+Kfx4sFZg+tC3C32p2HwwqZTB1mAGeHNhYrT4J7 > MdxA7FlWM6D7Bc1Fj0NuvJJ9FKU47ZJp8/rOD9+Zr2YMp9T46kx2y6LROoU/ > 7a9vi8g4lDOWWn/yaDONYpFCSelR+txvkPoVYIbbKwvYpt2zBWj1S5qAs+uQ > +kz6QAMbKwKWrKvTWyltUXKCAUETSeF34GNM/6GUU40PV+t79e9XREPpABEB > AAHNIFNhZmVXaXRoLm1lIFVzZXIgPHRlc3RAYXNkZi5jb20+wsBcBBABAgAQ > BQJPdCUiCRDavEiUOBf/AQAA1kAH/RD1LjZrYI9mhJRASHCaKdUMRXNyto/o > 1QFMcw6fXV5A54K0sbGr/Dp1pQe98Jl5nPEro+Dk6JPma4inY4IENw7+Xrqr > fr84ckzTN7hcNrpYxx4vjawQXpvP1I6Y/69kmZMWa8sFaWIj6yQhOAjIWBp/ > yHWjq5jBuZv2/yNegqXpH5fsYZg2CieaJizU0cyXxfsMDgDRbbBtVagMm7Pr > hZXKB8pNJTeMKYldlBcDffx8O9RF4HxVtZiVLr2MbFAClY7zh/xZ01HmmsLc > PtawTKpTkZkCcI2FvAuAKad1LbR1q9cSeEB5S39VYBFt49UtWPal3OtIcyAU HSzX902i0hc= > =8kjM -----END PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PRIVATE KEY > BLOCK----- Version: OpenPGP.js v0.1 Comment: > http://openpgpjs.orgxcL+BE90JR0BB/9qIX3maW5LQxIh57xpmX3ZYSXrPyhkTJOyPESXpriex3yZ > ygmH21LTV9St/L+KrxkLkzfEhI+q+Px6OyWMNPePMezfKFiDkfxce6pTj5FO > amBDPDB1/jptmwo4/zbbe+Kfx4sFZg+tC3C32p2HwwqZTB1mAGeHNhYrT4J7 > MdxA7FlWM6D7Bc1Fj0NuvJJ9FKU47ZJp8/rOD9+Zr2YMp9T46kx2y6LROoU/ > 7a9vi8g4lDOWWn/yaDONYpFCSelR+txvkPoVYIbbKwvYpt2zBWj1S5qAs+uQ > +kz6QAMbKwKWrKvTWyltUXKCAUETSeF34GNM/6GUU40PV+t79e9XREPpABEB > AAH+AwMCR2tp41kkG8HGIs6d+WiZWsCaWdn7+l7Y8jtB58VKU6MG6RdvAqIM > WZXE+ufd3sofvL8FZqPNzTeoRA9sw87taO6+rCvAFluX1ZHaZ9w+hOH1gN6r > /Kch3VPeRxplH/cH1juBl7B3UktzmAtGlQ1wmyIxx2Etwc5tReZMeHWTy/VO > a/CAXrNaAsZ8n/x1O3/DKwU5A2Kn95t8EJsXtjlk2yH0SuqJrY3ayW/9UZTY > BCzP8n7ajeUq0KpWFN+sOg5tNEQIBk410rSPjgbtueJBDak2aMY4dUv/WwW5 > 2rOLhMfSaMmYDPN+XitNzmxeSoil4EY3TXrXjEDFycpm/DeLuvTt7/9Xpxgl > V3A28Upzf+3KviNccie8gI5nzGWsBxXRPh8ahZnP4vwLOvhMpSu2Wox1SbXm > PiK0zHE/movutFC31uk/8GgxqvaSC7auIiYlXAyf6qN+1dbEKHNb/oZb/VP6 > QVpBeabCb103FR9NALpOVDHUo54WL2uYEkmpvnL/lqSL3qP05iZD8BLLW7aG > qyPtagxmwKq3YD92/Nnewb/9aqD8oEElXxlnALDLzNhBhulA0ivDPpw5zlgH > Qg1B346Qi3S3cYYGThonx8m9X+g+j2f2nh+IJXZQkteBeLO+dUIn417du1DD > ypsA8saeSSC50ygkt6nRPW3ALpJXYGJd/qAIRpfkHsbFYTaxrYO8ASwuw364 > F7p6L3+R8T1facwTo40SJuYC+pM/KxgOCnErj7m4IDBIc1GdzRO/1vALDMEJ > E/w38f27Mh8h58MG04ylk79JVrKvRZ9ga1zMg9XpQtRLNng4/X0pn9GtnzGE > Xzu9UlIYdfHljtrzWRtFIMXEdDAhzBZ5VhJ+xwiv57ref7IzZ8LoCEGbIYv4 > 6o4FnKFS6bn7e1WMcoxIlM0gU2FmZVdpdGgubWUgVXNlciA8dGVzdEBhc2Rm > LmNvbT7CwFwEEAECABAFAk90JSIJENq8SJQ4F/8BAADWQAf9EPUuNmtgj2aE > lEBIcJop1QxFc3K2j+jVAUxzDp9dXkDngrSxsav8OnWlB73wmXmc8Suj4OTo > k+ZriKdjggQ3Dv5euqt+vzhyTNM3uFw2uljHHi+NrBBem8/Ujpj/r2SZkxZr > ywVpYiPrJCE4CMhYGn/IdaOrmMG5m/b/I16Cpekfl+xhmDYKJ5omLNTRzJfF > +wwOANFtsG1VqAybs+uFlcoHyk0lN4wpiV2UFwN9/Hw71EXgfFW1mJUuvYxs > UAKVjvOH/FnTUeaawtw+1rBMqlORmQJwjYW8C4App3UttHWr1xJ4QHlLf1Vg > EW3j1S1Y9qXc60hzIBQdLNf3TaLSFw== =ecx+ -----END PGP PRIVATE KEY BLOCK----- > > Am 29. März 2012 06:52 schrieb Sean Colyer <[email protected]>: > >> Hmm, that's weird. Can you send me a key (and it's passphrase) if you >> encounter one of these that I could work against? >> >> On Wed, Mar 28, 2012 at 11:22 AM, Tankred Hase <[email protected]>wrote: >> >>> Well, there it is again. It seems as though this behavior is really >>> dependent on the key that was generated... >>> >>> Decryption is as fast as usual for most keys. But for certain keys in a >>> while, the decryption of even very small strings will take several seconds >>> every time. >>> >>> Am 28. März 2012 21:57 schrieb Tankred Hase <[email protected]>: >>> >>> Ok, this is weird... after clearing local storage and generating a new >>>> keypair, it's just as fast again. Either it's a hard to reproduce bug or >>>> I've just been generating a few too many keypairs the last few days :) >>>> >>>> Am 28. März 2012 15:34 schrieb Tankred Hase <[email protected]>: >>>> >>>> Hi Sean, >>>>> >>>>> I just integrated the passphrase protected into the application. I >>>>> noticed that the decryption is painfully slow now, even for a little JSON >>>>> string. This seemed very odd, so I profiled it and attached a screenshot >>>>> of >>>>> where most of the CPU time was spent. Any ideas? >>>>> >>>>> Thanks! >>>>> >>>>> Tankred >>>>> >>>> >>>> >>> >>> _______________________________________________ >>> >>> http://openpgpjs.org >>> >>> >> >> _______________________________________________ >> >> http://openpgpjs.org >> >> >
_______________________________________________ http://openpgpjs.org

