diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_x931.c')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_x931.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_x931.c b/src/lib/libcrypto/rsa/rsa_x931.c index 74c4af91a5..e9f4df341d 100644 --- a/src/lib/libcrypto/rsa/rsa_x931.c +++ b/src/lib/libcrypto/rsa/rsa_x931.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_x931.c,v 1.5 2014/07/09 19:51:38 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_x931.c,v 1.6 2014/07/10 11:25:13 tedu Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2005. | 3 | * project 2005. |
| 4 | */ | 4 | */ |
| @@ -95,7 +95,7 @@ RSA_padding_add_X931(unsigned char *to, int tlen, const unsigned char *from, | |||
| 95 | } | 95 | } |
| 96 | *p++ = 0xBA; | 96 | *p++ = 0xBA; |
| 97 | } | 97 | } |
| 98 | memcpy(p, from, (unsigned int)flen); | 98 | memcpy(p, from, flen); |
| 99 | p += flen; | 99 | p += flen; |
| 100 | *p = 0xCC; | 100 | *p = 0xCC; |
| 101 | return 1; | 101 | return 1; |
| @@ -141,7 +141,7 @@ RSA_padding_check_X931(unsigned char *to, int tlen, const unsigned char *from, | |||
| 141 | return -1; | 141 | return -1; |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | memcpy(to, p, (unsigned int)j); | 144 | memcpy(to, p, j); |
| 145 | 145 | ||
| 146 | return j; | 146 | return j; |
| 147 | } | 147 | } |
