projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s390x-mont.pl: optimize prologue.
[openssl.git]
/
crypto
/
bn
/
bn_prime.h
diff --git
a/crypto/bn/bn_prime.h
b/crypto/bn/bn_prime.h
index c10217dfea830cd67e4c14f727ae61b819c1f1ba..51d2194febdb66268674ec31e062a1fdaa5c3944 100644
(file)
--- a/
crypto/bn/bn_prime.h
+++ b/
crypto/bn/bn_prime.h
@@
-55,12
+55,15
@@
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/
+
#ifndef EIGHT_BIT
#define NUMPRIMES 2048
#ifndef EIGHT_BIT
#define NUMPRIMES 2048
+typedef unsigned short prime_t;
#else
#define NUMPRIMES 54
#else
#define NUMPRIMES 54
+typedef unsigned char prime_t;
#endif
#endif
-static
unsigned in
t primes[NUMPRIMES]=
+static
const prime_
t primes[NUMPRIMES]=
{
2, 3, 5, 7, 11, 13, 17, 19,
23, 29, 31, 37, 41, 43, 47, 53,
{
2, 3, 5, 7, 11, 13, 17, 19,
23, 29, 31, 37, 41, 43, 47, 53,