Skip to content
Snippets Groups Projects
Commit cd6e8217 authored by Niels Möller's avatar Niels Möller
Browse files

rsa_pad: Bugfix.

Rev: lib/modules/Crypto/rsa.pike:1.15
parent b086f293
No related branches found
No related tags found
No related merge requests found
/* $Id: rsa.pike,v 1.14 1998/08/26 06:12:52 nisse Exp $ /* $Id: rsa.pike,v 1.15 1999/03/03 13:51:33 nisse Exp $
* *
* Follow the PKCS#1 standard for padding and encryption. * Follow the PKCS#1 standard for padding and encryption.
*/ */
...@@ -83,7 +83,7 @@ bignum rsa_pad(string message, int type, mixed|void random) ...@@ -83,7 +83,7 @@ bignum rsa_pad(string message, int type, mixed|void random)
else else
cookie = sprintf("%@c", Array.map(allocate(len), lambda(int dummy) cookie = sprintf("%@c", Array.map(allocate(len), lambda(int dummy)
{ {
return random(255) + 1; return predef::random(255) + 1;
} )); } ));
break; break;
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment