const for p256

This commit is contained in:
NIIBE Yutaka
2013-06-18 12:14:28 +09:00
parent 66cf7f389e
commit 188f77b5fd
3 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
2013-06-18 Niibe Yutaka <gniibe@fsij.org>
* src/modp256.c (p256): Add const qualifier.
2013-03-19 Niibe Yutaka <gniibe@fsij.org>
* src/random.c (random_gen): New (was: random_byte).

View File

@@ -43,7 +43,7 @@
2^256 - 2^224 + 2^192 + 2^96 - 1
0 ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff
*/
bn256 p256 = { {0xffffffff, 0xffffffff, 0xffffffff, 0x00000000,
const bn256 p256 = { {0xffffffff, 0xffffffff, 0xffffffff, 0x00000000,
0x00000000, 0x00000000, 0x00000001, 0xffffffff} };
/**

View File

@@ -1,4 +1,4 @@
extern bn256 p256;
extern const bn256 p256;
#define P256 (&p256)
void modp256_add (bn256 *X, const bn256 *A, const bn256 *B);