diff options
Diffstat (limited to 'lib/libcrypto/rsa')
-rw-r--r-- | lib/libcrypto/rsa/rsa_ameth.c | 10 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_asn1.c | 6 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_crpt.c | 8 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_depr.c | 3 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_eay.c | 6 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_gen.c | 5 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_lib.c | 8 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_none.c | 6 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_oaep.c | 7 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_pk1.c | 4 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_pmeth.c | 10 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_prn.c | 7 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_pss.c | 6 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_saos.c | 6 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_sign.c | 7 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_ssl.c | 6 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_x931.c | 8 |
17 files changed, 60 insertions, 53 deletions
diff --git a/lib/libcrypto/rsa/rsa_ameth.c b/lib/libcrypto/rsa/rsa_ameth.c index 1eeb58ed9bb..bcc0eee4b9b 100644 --- a/lib/libcrypto/rsa/rsa_ameth.c +++ b/lib/libcrypto/rsa/rsa_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_ameth.c,v 1.10 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: rsa_ameth.c,v 1.11 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -60,14 +60,16 @@ #include <openssl/opensslconf.h> -#include "cryptlib.h" #include <openssl/asn1t.h> -#include <openssl/x509.h> -#include <openssl/rsa.h> #include <openssl/bn.h> +#include <openssl/err.h> +#include <openssl/rsa.h> +#include <openssl/x509.h> + #ifndef OPENSSL_NO_CMS #include <openssl/cms.h> #endif + #include "asn1_locl.h" static int diff --git a/lib/libcrypto/rsa/rsa_asn1.c b/lib/libcrypto/rsa/rsa_asn1.c index 9bc5f17b064..573b9f8b8d0 100644 --- a/lib/libcrypto/rsa/rsa_asn1.c +++ b/lib/libcrypto/rsa/rsa_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_asn1.c,v 1.8 2014/07/09 19:51:38 jsing Exp $ */ +/* $OpenBSD: rsa_asn1.c,v 1.9 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2000. */ @@ -57,11 +57,11 @@ */ #include <stdio.h> -#include "cryptlib.h" + +#include <openssl/asn1t.h> #include <openssl/bn.h> #include <openssl/rsa.h> #include <openssl/x509.h> -#include <openssl/asn1t.h> /* Override the default free and new methods */ static int diff --git a/lib/libcrypto/rsa/rsa_crpt.c b/lib/libcrypto/rsa/rsa_crpt.c index 220ce9497ab..2adb2b31b2f 100644 --- a/lib/libcrypto/rsa/rsa_crpt.c +++ b/lib/libcrypto/rsa/rsa_crpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_crpt.c,v 1.10 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: rsa_crpt.c,v 1.11 2014/07/11 08:44:49 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -60,12 +60,12 @@ #include <openssl/opensslconf.h> +#include <openssl/bn.h> #include <openssl/crypto.h> -#include "cryptlib.h" #include <openssl/lhash.h> -#include <openssl/bn.h> -#include <openssl/rsa.h> #include <openssl/rand.h> +#include <openssl/rsa.h> + #ifndef OPENSSL_NO_ENGINE #include <openssl/engine.h> #endif diff --git a/lib/libcrypto/rsa/rsa_depr.c b/lib/libcrypto/rsa/rsa_depr.c index 547f9a491e3..b830a2293c4 100644 --- a/lib/libcrypto/rsa/rsa_depr.c +++ b/lib/libcrypto/rsa/rsa_depr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_depr.c,v 1.7 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: rsa_depr.c,v 1.8 2014/07/11 08:44:49 jsing Exp $ */ /* ==================================================================== * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. * @@ -61,7 +61,6 @@ #include <openssl/opensslconf.h> -#include "cryptlib.h" #include <openssl/bn.h> #include <openssl/rsa.h> diff --git a/lib/libcrypto/rsa/rsa_eay.c b/lib/libcrypto/rsa/rsa_eay.c index 3cc8f6c5cfa..571a9a0f059 100644 --- a/lib/libcrypto/rsa/rsa_eay.c +++ b/lib/libcrypto/rsa/rsa_eay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_eay.c,v 1.33 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: rsa_eay.c,v 1.34 2014/07/11 08:44:49 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -113,10 +113,10 @@ #include <openssl/opensslconf.h> -#include "cryptlib.h" #include <openssl/bn.h> -#include <openssl/rsa.h> +#include <openssl/err.h> #include <openssl/rand.h> +#include <openssl/rsa.h> static int RSA_eay_public_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding); diff --git a/lib/libcrypto/rsa/rsa_gen.c b/lib/libcrypto/rsa/rsa_gen.c index f000b41940e..a3b9da4856e 100644 --- a/lib/libcrypto/rsa/rsa_gen.c +++ b/lib/libcrypto/rsa/rsa_gen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_gen.c,v 1.15 2014/07/09 19:51:38 jsing Exp $ */ +/* $OpenBSD: rsa_gen.c,v 1.16 2014/07/11 08:44:49 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -64,8 +64,9 @@ #include <stdio.h> #include <time.h> -#include "cryptlib.h" + #include <openssl/bn.h> +#include <openssl/err.h> #include <openssl/rsa.h> static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb); diff --git a/lib/libcrypto/rsa/rsa_lib.c b/lib/libcrypto/rsa/rsa_lib.c index d7a51c7b05c..157c347f880 100644 --- a/lib/libcrypto/rsa/rsa_lib.c +++ b/lib/libcrypto/rsa/rsa_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_lib.c,v 1.27 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: rsa_lib.c,v 1.28 2014/07/11 08:44:49 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -60,12 +60,12 @@ #include <openssl/opensslconf.h> +#include <openssl/bn.h> #include <openssl/crypto.h> -#include "cryptlib.h" #include <openssl/lhash.h> -#include <openssl/bn.h> -#include <openssl/rsa.h> #include <openssl/rand.h> +#include <openssl/rsa.h> + #ifndef OPENSSL_NO_ENGINE #include <openssl/engine.h> #endif diff --git a/lib/libcrypto/rsa/rsa_none.c b/lib/libcrypto/rsa/rsa_none.c index 503d93bb68f..3527f1c6820 100644 --- a/lib/libcrypto/rsa/rsa_none.c +++ b/lib/libcrypto/rsa/rsa_none.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_none.c,v 1.8 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: rsa_none.c,v 1.9 2014/07/11 08:44:49 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,10 +59,10 @@ #include <stdio.h> #include <string.h> -#include "cryptlib.h" #include <openssl/bn.h> -#include <openssl/rsa.h> +#include <openssl/err.h> #include <openssl/rand.h> +#include <openssl/rsa.h> int RSA_padding_add_none(unsigned char *to, int tlen, const unsigned char *from, diff --git a/lib/libcrypto/rsa/rsa_oaep.c b/lib/libcrypto/rsa/rsa_oaep.c index 09799818d36..9be0f9be310 100644 --- a/lib/libcrypto/rsa/rsa_oaep.c +++ b/lib/libcrypto/rsa/rsa_oaep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_oaep.c,v 1.22 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: rsa_oaep.c,v 1.23 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Ulf Moeller. This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. */ @@ -24,11 +24,12 @@ #include <openssl/opensslconf.h> #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1) -#include "cryptlib.h" + #include <openssl/bn.h> -#include <openssl/rsa.h> +#include <openssl/err.h> #include <openssl/evp.h> #include <openssl/rand.h> +#include <openssl/rsa.h> #include <openssl/sha.h> static int MGF1(unsigned char *mask, long len, const unsigned char *seed, diff --git a/lib/libcrypto/rsa/rsa_pk1.c b/lib/libcrypto/rsa/rsa_pk1.c index 6d11ee19f9a..4f82bf67688 100644 --- a/lib/libcrypto/rsa/rsa_pk1.c +++ b/lib/libcrypto/rsa/rsa_pk1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_pk1.c,v 1.12 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: rsa_pk1.c,v 1.13 2014/07/11 08:44:49 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,8 +59,8 @@ #include <stdio.h> #include <string.h> -#include "cryptlib.h" #include <openssl/bn.h> +#include <openssl/err.h> #include <openssl/rsa.h> #include <openssl/rand.h> diff --git a/lib/libcrypto/rsa/rsa_pmeth.c b/lib/libcrypto/rsa/rsa_pmeth.c index 0b2d680eedd..954190d5601 100644 --- a/lib/libcrypto/rsa/rsa_pmeth.c +++ b/lib/libcrypto/rsa/rsa_pmeth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_pmeth.c,v 1.13 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: rsa_pmeth.c,v 1.14 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -62,15 +62,17 @@ #include <openssl/opensslconf.h> -#include "cryptlib.h" #include <openssl/asn1t.h> -#include <openssl/x509.h> -#include <openssl/rsa.h> #include <openssl/bn.h> +#include <openssl/err.h> #include <openssl/evp.h> +#include <openssl/rsa.h> +#include <openssl/x509.h> + #ifndef OPENSSL_NO_CMS #include <openssl/cms.h> #endif + #include "evp_locl.h" #include "rsa_locl.h" diff --git a/lib/libcrypto/rsa/rsa_prn.c b/lib/libcrypto/rsa/rsa_prn.c index 5d5b0e29d80..db82dab5be1 100644 --- a/lib/libcrypto/rsa/rsa_prn.c +++ b/lib/libcrypto/rsa/rsa_prn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_prn.c,v 1.5 2014/07/09 19:51:38 jsing Exp $ */ +/* $OpenBSD: rsa_prn.c,v 1.6 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -57,9 +57,10 @@ */ #include <stdio.h> -#include "cryptlib.h" -#include <openssl/rsa.h> + +#include <openssl/err.h> #include <openssl/evp.h> +#include <openssl/rsa.h> int RSA_print_fp(FILE *fp, const RSA *x, int off) diff --git a/lib/libcrypto/rsa/rsa_pss.c b/lib/libcrypto/rsa/rsa_pss.c index fa32a856bac..e18ca632aab 100644 --- a/lib/libcrypto/rsa/rsa_pss.c +++ b/lib/libcrypto/rsa/rsa_pss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_pss.c,v 1.8 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: rsa_pss.c,v 1.9 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2005. */ @@ -59,11 +59,11 @@ #include <stdio.h> #include <string.h> -#include "cryptlib.h" #include <openssl/bn.h> -#include <openssl/rsa.h> +#include <openssl/err.h> #include <openssl/evp.h> #include <openssl/rand.h> +#include <openssl/rsa.h> #include <openssl/sha.h> static const unsigned char zeroes[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; diff --git a/lib/libcrypto/rsa/rsa_saos.c b/lib/libcrypto/rsa/rsa_saos.c index f2cf06af4cb..47b2a4e95fa 100644 --- a/lib/libcrypto/rsa/rsa_saos.c +++ b/lib/libcrypto/rsa/rsa_saos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_saos.c,v 1.14 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: rsa_saos.c,v 1.15 2014/07/11 08:44:49 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,10 +59,10 @@ #include <stdio.h> #include <string.h> -#include "cryptlib.h" #include <openssl/bn.h> -#include <openssl/rsa.h> +#include <openssl/err.h> #include <openssl/objects.h> +#include <openssl/rsa.h> #include <openssl/x509.h> int diff --git a/lib/libcrypto/rsa/rsa_sign.c b/lib/libcrypto/rsa/rsa_sign.c index c7e0a55829f..a446b563b32 100644 --- a/lib/libcrypto/rsa/rsa_sign.c +++ b/lib/libcrypto/rsa/rsa_sign.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_sign.c,v 1.21 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: rsa_sign.c,v 1.22 2014/07/11 08:44:49 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,11 +59,12 @@ #include <stdio.h> #include <string.h> -#include "cryptlib.h" #include <openssl/bn.h> -#include <openssl/rsa.h> +#include <openssl/err.h> #include <openssl/objects.h> +#include <openssl/rsa.h> #include <openssl/x509.h> + #include "rsa_locl.h" /* Size of an SSL signature: MD5+SHA1 */ diff --git a/lib/libcrypto/rsa/rsa_ssl.c b/lib/libcrypto/rsa/rsa_ssl.c index 71372341c20..a5fe5004b1e 100644 --- a/lib/libcrypto/rsa/rsa_ssl.c +++ b/lib/libcrypto/rsa/rsa_ssl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_ssl.c,v 1.12 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: rsa_ssl.c,v 1.13 2014/07/11 08:44:49 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,10 +59,10 @@ #include <stdio.h> #include <string.h> -#include "cryptlib.h" #include <openssl/bn.h> -#include <openssl/rsa.h> +#include <openssl/err.h> #include <openssl/rand.h> +#include <openssl/rsa.h> int RSA_padding_add_SSLv23(unsigned char *to, int tlen, const unsigned char *from, diff --git a/lib/libcrypto/rsa/rsa_x931.c b/lib/libcrypto/rsa/rsa_x931.c index 5809f62cbd0..8ee309e6c94 100644 --- a/lib/libcrypto/rsa/rsa_x931.c +++ b/lib/libcrypto/rsa/rsa_x931.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_x931.c,v 1.7 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: rsa_x931.c,v 1.8 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2005. */ @@ -59,11 +59,11 @@ #include <stdio.h> #include <string.h> -#include "cryptlib.h" #include <openssl/bn.h> -#include <openssl/rsa.h> -#include <openssl/rand.h> +#include <openssl/err.h> #include <openssl/objects.h> +#include <openssl/rand.h> +#include <openssl/rsa.h> int RSA_padding_add_X931(unsigned char *to, int tlen, const unsigned char *from, |