pgp uses rng from tomwu, mDispatch does pgp sync, somehow failing async

This commit is contained in:
Timothy Prepscius 2013-10-05 12:37:02 -04:00
parent 940b792d21
commit 819882d9b0
3 changed files with 11 additions and 3 deletions

View File

@ -25,11 +25,14 @@ cd mailiverse/install && sudo ./setup-java.remote
6. Have ant installed:
sudo apt-get install ant --yes
7. Add lines to the hosts file for the target machine:
7. Add the line to the hosts file for the target machine:
So let's say your target machine was named: joesmail.com
And it's IP was: 192.168.1.243
sudo nano /etc/hosts
add the lines:
SOME-IP-ADDRESS mail.whateverthenameofyourdomainis
SOME-IP-ADDRESS whateverthenameofyourdomainis
192.168.1.243 mail.joesmail.com
This could also be done on a DNS server, if you control one..

View File

@ -1520,6 +1520,7 @@ BigInteger.prototype.square = bnSquare;
//
// RSA implementation
/*
function SecureRandom(){
function nextBytes(byteArray){
for(var n = 0; n < byteArray.length;n++){
@ -1528,6 +1529,7 @@ function SecureRandom(){
}
this.nextBytes = nextBytes;
}
*/
function RSA() {
/**

View File

@ -64,6 +64,9 @@ mDispatch = {
if (mode == 'worker' && startsWith(cmd,'srp'))
mode = 'async';
if (startsWith(cmd, 'pgp'))
mode = 'sync';
if (mode == 'sync')
{
try