Bug 237050

Summary: Kopete OTR private key won't generate
Product: [Applications] kopete Reporter: James Roe <roejames12>
Component: OTR PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: gspr
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description James Roe 2010-05-10 02:25:38 UTC
Version:           1.0.0 (using 4.4.2 (KDE 4.4.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.32-22-generic

This never used to be a problem, but now for some reason, when I enable the OTR plugin, then click the generate private key button to generate a key for my hotmail account, it takes forever to generate. More accurately, it takes so long that it has never finished generating for me, which means I can't use the plugin to encrypt the messages between one of my contacts.

When I started Kopete from the command line, on startup, it did have this weird error, however this error seems very obscure and possibly not even related..

kopete(5498)/libkopete Kopete::PluginManager::loadPluginInternal: Unable to find a plugin named ' "" '!

To reproduce, enable the plugin, and click generate to try to generate a new key.
Comment 1 James Roe 2010-11-06 07:29:22 UTC
Using KDE 4.5.3 x86_64 on Ubuntu 10.10 now, and the bug still exists.
Comment 2 Gard Spreemann 2010-11-20 00:39:26 UTC
It's actually not a bug. I don't know the details of how OTR works, but many cryptographic systems need to gather high-quality entropy to produce keys. This can mean gathering physical data such as keyboard activity, mouse movement and disk timings. 

I just generated a Kopete OTR key, and experienced the same thing you did. Here's how to get it working: Just leave the key generation dialog in the background and continue doing other work as usual (i.e. moving the mouse and using the keyboard). A few (like 5-10) minutes later it'll have enough entropy and the key generation will succeed.

I think the dialog should let the users know about this, though. I'll submit a patch.
Comment 3 Gard Spreemann 2010-11-20 01:03:42 UTC
See bug #257380.
Comment 4 James Roe 2010-12-23 16:19:26 UTC
Confirmed. Waiting ~10 minutes and it finally generates.