ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/curve25519.C
(Generate patch)

Comparing gvpe/src/curve25519.C (file contents):
Revision 1.1 by root, Tue Jul 16 16:44:36 2013 UTC vs.
Revision 1.2 by root, Wed Jul 17 04:36:03 2013 UTC

45 curve25519_donna (b, a, basepoint); 45 curve25519_donna (b, a, basepoint);
46} 46}
47 47
48void curve25519_generate (curve25519_key &a, curve25519_key &b) 48void curve25519_generate (curve25519_key &a, curve25519_key &b)
49{ 49{
50 RAND_pseudo_bytes (a, sizeof a); 50 RAND_bytes (a, sizeof a);
51 51
52 a [ 0] &= 0xf8; 52 a [ 0] &= 0xf8;
53 a [31] &= 0x7f; 53 a [31] &= 0x7f;
54 a [31] |= 0x40; 54 a [31] |= 0x40;
55 55

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines