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.3 by root, Wed Jul 17 16:40:57 2013 UTC vs.
Revision 1.4 by root, Sat Jan 17 07:59:47 2015 UTC

47 47
48void curve25519_generate (curve25519_key &a, curve25519_key &b) 48void curve25519_generate (curve25519_key &a, curve25519_key &b)
49{ 49{
50 rand_fill (a); 50 rand_fill (a);
51 51
52#if 0
52 a [ 0] &= 0xf8; 53 a [ 0] &= 0xf8;
53 a [31] &= 0x7f; 54 a [31] &= 0x7f;
54 a [31] |= 0x40; 55 a [31] |= 0x40;
56#endif
55 57
56 curve25519_derive (a, b); 58 curve25519_derive (a, b);
57} 59}
58 60
59void curve25519_combine (const curve25519_key &a, const curve25519_key &b, curve25519_key &s) 61void curve25519_combine (const curve25519_key &a, const curve25519_key &b, curve25519_key &s)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines