summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_nist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_nist.c')
-rw-r--r--src/lib/libcrypto/bn/bn_nist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/bn/bn_nist.c b/src/lib/libcrypto/bn/bn_nist.c
index 53ed559c06..693d6f1ed3 100644
--- a/src/lib/libcrypto/bn/bn_nist.c
+++ b/src/lib/libcrypto/bn/bn_nist.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_nist.c,v 1.14 2014/07/11 08:44:48 jsing Exp $ */ 1/* $OpenBSD: bn_nist.c,v 1.15 2014/10/28 07:35:58 jsg Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project 3 * Written by Nils Larsch for the OpenSSL project
4 */ 4 */
@@ -424,7 +424,7 @@ BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx)
424{ 424{
425 int top = a->top, i; 425 int top = a->top, i;
426 int carry; 426 int carry;
427 register BN_ULONG *r_d, *a_d = a->d; 427 BN_ULONG *r_d, *a_d = a->d;
428 union { 428 union {
429 BN_ULONG bn[BN_NIST_192_TOP]; 429 BN_ULONG bn[BN_NIST_192_TOP];
430 unsigned int ui[BN_NIST_192_TOP * 430 unsigned int ui[BN_NIST_192_TOP *
@@ -740,7 +740,7 @@ BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx)
740{ 740{
741 int i, top = a->top; 741 int i, top = a->top;
742 int carry = 0; 742 int carry = 0;
743 register BN_ULONG *a_d = a->d, *r_d; 743 BN_ULONG *a_d = a->d, *r_d;
744 union { 744 union {
745 BN_ULONG bn[BN_NIST_256_TOP]; 745 BN_ULONG bn[BN_NIST_256_TOP];
746 unsigned int ui[BN_NIST_256_TOP * 746 unsigned int ui[BN_NIST_256_TOP *
@@ -888,7 +888,7 @@ BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx)
888 carry = (int)bn_add_words(t_d, t_d, c_d, BN_NIST_256_TOP); 888 carry = (int)bn_add_words(t_d, t_d, c_d, BN_NIST_256_TOP);
889 /* left shift */ 889 /* left shift */
890 { 890 {
891 register BN_ULONG *ap, t, c; 891 BN_ULONG *ap, t, c;
892 ap = t_d; 892 ap = t_d;
893 c = 0; 893 c = 0;
894 for (i = BN_NIST_256_TOP; i != 0; --i) { 894 for (i = BN_NIST_256_TOP; i != 0; --i) {
@@ -967,7 +967,7 @@ BN_nist_mod_384(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx)
967{ 967{
968 int i, top = a->top; 968 int i, top = a->top;
969 int carry = 0; 969 int carry = 0;
970 register BN_ULONG *r_d, *a_d = a->d; 970 BN_ULONG *r_d, *a_d = a->d;
971 union { 971 union {
972 BN_ULONG bn[BN_NIST_384_TOP]; 972 BN_ULONG bn[BN_NIST_384_TOP];
973 unsigned int ui[BN_NIST_384_TOP * 973 unsigned int ui[BN_NIST_384_TOP *
@@ -1140,7 +1140,7 @@ BN_nist_mod_384(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx)
1140 21 - 4); 1140 21 - 4);
1141 /* left shift */ 1141 /* left shift */
1142 { 1142 {
1143 register BN_ULONG *ap, t, c; 1143 BN_ULONG *ap, t, c;
1144 ap = t_d; 1144 ap = t_d;
1145 c = 0; 1145 c = 0;
1146 for (i = 3; i != 0; --i) { 1146 for (i = 3; i != 0; --i) {