diff options
Diffstat (limited to 'src/lib/libssl/src/crypto/rsa/rsa_pk1.c')
-rw-r--r-- | src/lib/libssl/src/crypto/rsa/rsa_pk1.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libssl/src/crypto/rsa/rsa_pk1.c b/src/lib/libssl/src/crypto/rsa/rsa_pk1.c index 48a32bc264..c1edd6764f 100644 --- a/src/lib/libssl/src/crypto/rsa/rsa_pk1.c +++ b/src/lib/libssl/src/crypto/rsa/rsa_pk1.c | |||
@@ -63,7 +63,7 @@ | |||
63 | #include <openssl/rand.h> | 63 | #include <openssl/rand.h> |
64 | 64 | ||
65 | int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, | 65 | int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, |
66 | unsigned char *from, int flen) | 66 | const unsigned char *from, int flen) |
67 | { | 67 | { |
68 | int j; | 68 | int j; |
69 | unsigned char *p; | 69 | unsigned char *p; |
@@ -89,10 +89,10 @@ int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, | |||
89 | } | 89 | } |
90 | 90 | ||
91 | int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, | 91 | int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, |
92 | unsigned char *from, int flen, int num) | 92 | const unsigned char *from, int flen, int num) |
93 | { | 93 | { |
94 | int i,j; | 94 | int i,j; |
95 | unsigned char *p; | 95 | const unsigned char *p; |
96 | 96 | ||
97 | p=from; | 97 | p=from; |
98 | if ((num != (flen+1)) || (*(p++) != 01)) | 98 | if ((num != (flen+1)) || (*(p++) != 01)) |
@@ -141,7 +141,7 @@ int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, | |||
141 | } | 141 | } |
142 | 142 | ||
143 | int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, | 143 | int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, |
144 | unsigned char *from, int flen) | 144 | const unsigned char *from, int flen) |
145 | { | 145 | { |
146 | int i,j; | 146 | int i,j; |
147 | unsigned char *p; | 147 | unsigned char *p; |
@@ -179,10 +179,10 @@ int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, | |||
179 | } | 179 | } |
180 | 180 | ||
181 | int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, | 181 | int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, |
182 | unsigned char *from, int flen, int num) | 182 | const unsigned char *from, int flen, int num) |
183 | { | 183 | { |
184 | int i,j; | 184 | int i,j; |
185 | unsigned char *p; | 185 | const unsigned char *p; |
186 | 186 | ||
187 | p=from; | 187 | p=from; |
188 | if ((num != (flen+1)) || (*(p++) != 02)) | 188 | if ((num != (flen+1)) || (*(p++) != 02)) |