diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_shift.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_shift.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/lib/libcrypto/bn/bn_shift.c b/src/lib/libcrypto/bn/bn_shift.c index 944bf1794b..61aae65a6b 100644 --- a/src/lib/libcrypto/bn/bn_shift.c +++ b/src/lib/libcrypto/bn/bn_shift.c | |||
@@ -60,9 +60,7 @@ | |||
60 | #include "cryptlib.h" | 60 | #include "cryptlib.h" |
61 | #include "bn_lcl.h" | 61 | #include "bn_lcl.h" |
62 | 62 | ||
63 | int BN_lshift1(r, a) | 63 | int BN_lshift1(BIGNUM *r, BIGNUM *a) |
64 | BIGNUM *r; | ||
65 | BIGNUM *a; | ||
66 | { | 64 | { |
67 | register BN_ULONG *ap,*rp,t,c; | 65 | register BN_ULONG *ap,*rp,t,c; |
68 | int i; | 66 | int i; |
@@ -94,9 +92,7 @@ BIGNUM *a; | |||
94 | return(1); | 92 | return(1); |
95 | } | 93 | } |
96 | 94 | ||
97 | int BN_rshift1(r, a) | 95 | int BN_rshift1(BIGNUM *r, BIGNUM *a) |
98 | BIGNUM *r; | ||
99 | BIGNUM *a; | ||
100 | { | 96 | { |
101 | BN_ULONG *ap,*rp,t,c; | 97 | BN_ULONG *ap,*rp,t,c; |
102 | int i; | 98 | int i; |
@@ -125,10 +121,7 @@ BIGNUM *a; | |||
125 | return(1); | 121 | return(1); |
126 | } | 122 | } |
127 | 123 | ||
128 | int BN_lshift(r, a, n) | 124 | int BN_lshift(BIGNUM *r, const BIGNUM *a, int n) |
129 | BIGNUM *r; | ||
130 | BIGNUM *a; | ||
131 | int n; | ||
132 | { | 125 | { |
133 | int i,nw,lb,rb; | 126 | int i,nw,lb,rb; |
134 | BN_ULONG *t,*f; | 127 | BN_ULONG *t,*f; |
@@ -160,10 +153,7 @@ int n; | |||
160 | return(1); | 153 | return(1); |
161 | } | 154 | } |
162 | 155 | ||
163 | int BN_rshift(r, a, n) | 156 | int BN_rshift(BIGNUM *r, BIGNUM *a, int n) |
164 | BIGNUM *r; | ||
165 | BIGNUM *a; | ||
166 | int n; | ||
167 | { | 157 | { |
168 | int i,j,nw,lb,rb; | 158 | int i,j,nw,lb,rb; |
169 | BN_ULONG *t,*f; | 159 | BN_ULONG *t,*f; |