perly_gates has asked for the wisdom of the Perl Monks concerning the following question:
Is there an issue with Win32 and this code?do 'bigint.pl';($_,$n)=@ARGV;s/^.(..)*$/0$&/;($k=unpack('B*',pack('H*' +,$_)))=~ s/^0*//;$x=0;$z=$n=~s/./$x=&badd(&bmul($x,16),hex$&)/ge;while(read(STD +IN,$_,$w =((2*$d-1+$z)&~1)/2)){$r=1;$_=substr($_."\0"x$w,$c=0,$w);s/.|\n/$c=&ba +dd(&bmul ($c,256),ord$&)/ge;$_=$k;s/./$r=&bmod(&bmul($r,$r),$x),$&?$r=&bmod(&bm +ul($r,$c ),$x):0,""/ge;($r,$t)=&bdiv($r,256),$_=pack(C,$t).$_ while$w--+1-2*$d; +print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n) Re: RSA encryption on Win32
by ar0n (Priest) on Feb 26, 2001 at 19:41 UTC | |
|
Re: RSA encryption on Win32
by perly_gates (Initiate) on Feb 26, 2001 at 15:59 UTC | |
|
Re: RSA encryption on Win32
by a (Friar) on Feb 27, 2001 at 11:20 UTC | |
by tye (Sage) on Feb 27, 2001 at 12:54 UTC | |
|
Re: RSA encryption on Win32
by perly_gates (Initiate) on Feb 28, 2001 at 01:32 UTC | |
by tye (Sage) on Feb 28, 2001 at 01:40 UTC | |
by btrott (Parson) on Feb 28, 2001 at 02:32 UTC | |
by perly_gates (Initiate) on Feb 28, 2001 at 03:49 UTC | |
by btrott (Parson) on Feb 28, 2001 at 08:08 UTC |