<div dir="ltr">While trying to reproduce a <a href="https://github.com/chrisballinger/Off-the-Record-iOS/issues/128">reported issue</a> with ChatSecure's OTR negotiation with Pidgin I discovered an apparently long standing key generation bug preventing the use of pidgin-otr on Ubuntu.<div>

<br></div><div>Steps to reproduce:</div><div><br></div><div>1) Install Ubuntu 13.10 64-bit in VMware Fusion 5.0.3 w/ VMware Tools for Linux on Mac OS 10.9 (Mavericks)</div><div>2) Install Pidgin 2.10.7 and pidgin-otr 4.0.0 through Ubuntu Software Center</div>

<div>3) Attempt to generate a private key for any account</div><div><br></div><div>It looks like this is a long standing bug in Debian/Ubuntu that may be related to libgcrypt's key generation routines getting blocked on reads from /dev/random or /dev/urandom.</div>

<div><br></div><div>Here are a collection of issues I found documenting this bug:</div><div><br></div><div>1) <a href="https://bugs.launchpad.net/ubuntu/+source/pidgin-otr/+bug/303862">https://bugs.launchpad.net/ubuntu/+source/pidgin-otr/+bug/303862</a></div>

<div>2) <a href="https://bugs.launchpad.net/ubuntu/+source/pidgin-otr/+bug/303866">https://bugs.launchpad.net/ubuntu/+source/pidgin-otr/+bug/303866</a><br></div><div>3) <a href="https://bugs.launchpad.net/ubuntu/+source/pidgin-otr/+bug/240640">https://bugs.launchpad.net/ubuntu/+source/pidgin-otr/+bug/240640</a></div>

<div>4) <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489523">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489523</a> (it looks like there is a lengthy discussion from 2008 there where Ian discusses asynchronous key generation)</div>

<div>5) <a href="http://sourceforge.net/p/otr/bugs/22/">http://sourceforge.net/p/otr/bugs/22/</a></div></div>