const for p256
This commit is contained in:
@@ -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>
|
2013-03-19 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
* src/random.c (random_gen): New (was: random_byte).
|
* src/random.c (random_gen): New (was: random_byte).
|
||||||
|
|||||||
@@ -43,8 +43,8 @@
|
|||||||
2^256 - 2^224 + 2^192 + 2^96 - 1
|
2^256 - 2^224 + 2^192 + 2^96 - 1
|
||||||
0 ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff
|
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} };
|
0x00000000, 0x00000000, 0x00000001, 0xffffffff} };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief X = (A + B) mod p256
|
* @brief X = (A + B) mod p256
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
extern bn256 p256;
|
extern const bn256 p256;
|
||||||
#define P256 (&p256)
|
#define P256 (&p256)
|
||||||
|
|
||||||
void modp256_add (bn256 *X, const bn256 *A, const bn256 *B);
|
void modp256_add (bn256 *X, const bn256 *A, const bn256 *B);
|
||||||
|
|||||||
Reference in New Issue
Block a user