summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec')
-rw-r--r--src/lib/libcrypto/ec/ec2_mult.c4
-rw-r--r--src/lib/libcrypto/ec/ec2_oct.c4
-rw-r--r--src/lib/libcrypto/ec/ec2_smpl.c4
-rw-r--r--src/lib/libcrypto/ec/ec_ameth.c5
-rw-r--r--src/lib/libcrypto/ec/ec_asn1.c6
-rw-r--r--src/lib/libcrypto/ec/ec_curve.c5
-rw-r--r--src/lib/libcrypto/ec/ec_cvt.c5
-rw-r--r--src/lib/libcrypto/ec/ec_err.c5
-rw-r--r--src/lib/libcrypto/ec/ec_key.c5
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c4
-rw-r--r--src/lib/libcrypto/ec/ec_oct.c4
-rw-r--r--src/lib/libcrypto/ec/eck_prn.c4
-rw-r--r--src/lib/libcrypto/ec/ecp_nistp224.c9
-rw-r--r--src/lib/libcrypto/ec/ecp_nistp256.c9
-rw-r--r--src/lib/libcrypto/ec/ecp_nistp521.c9
-rw-r--r--src/lib/libcrypto/ec/ecp_nistputil.c6
16 files changed, 59 insertions, 29 deletions
diff --git a/src/lib/libcrypto/ec/ec2_mult.c b/src/lib/libcrypto/ec/ec2_mult.c
index 6df193d0d4..6c3a759dc8 100644
--- a/src/lib/libcrypto/ec/ec2_mult.c
+++ b/src/lib/libcrypto/ec/ec2_mult.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec2_mult.c,v 1.3 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ec2_mult.c,v 1.4 2014/07/10 22:45:56 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. 3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
4 * 4 *
@@ -67,6 +67,8 @@
67 * 67 *
68 */ 68 */
69 69
70#include <openssl/opensslconf.h>
71
70#include <openssl/err.h> 72#include <openssl/err.h>
71 73
72#include "ec_lcl.h" 74#include "ec_lcl.h"
diff --git a/src/lib/libcrypto/ec/ec2_oct.c b/src/lib/libcrypto/ec/ec2_oct.c
index 15066beae4..5150423b99 100644
--- a/src/lib/libcrypto/ec/ec2_oct.c
+++ b/src/lib/libcrypto/ec/ec2_oct.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec2_oct.c,v 1.3 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ec2_oct.c,v 1.4 2014/07/10 22:45:56 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. 3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
4 * 4 *
@@ -67,6 +67,8 @@
67 * 67 *
68 */ 68 */
69 69
70#include <openssl/opensslconf.h>
71
70#include <openssl/err.h> 72#include <openssl/err.h>
71 73
72#include "ec_lcl.h" 74#include "ec_lcl.h"
diff --git a/src/lib/libcrypto/ec/ec2_smpl.c b/src/lib/libcrypto/ec/ec2_smpl.c
index fc2e4ca7bc..001ffcc077 100644
--- a/src/lib/libcrypto/ec/ec2_smpl.c
+++ b/src/lib/libcrypto/ec/ec2_smpl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec2_smpl.c,v 1.10 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ec2_smpl.c,v 1.11 2014/07/10 22:45:56 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. 3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
4 * 4 *
@@ -67,6 +67,8 @@
67 * 67 *
68 */ 68 */
69 69
70#include <openssl/opensslconf.h>
71
70#include <openssl/err.h> 72#include <openssl/err.h>
71 73
72#include "ec_lcl.h" 74#include "ec_lcl.h"
diff --git a/src/lib/libcrypto/ec/ec_ameth.c b/src/lib/libcrypto/ec/ec_ameth.c
index 31ea95f103..6935972de5 100644
--- a/src/lib/libcrypto/ec/ec_ameth.c
+++ b/src/lib/libcrypto/ec/ec_ameth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_ameth.c,v 1.9 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ec_ameth.c,v 1.10 2014/07/10 22:45:57 jsing 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 2006. 3 * project 2006.
4 */ 4 */
@@ -57,6 +57,9 @@
57 */ 57 */
58 58
59#include <stdio.h> 59#include <stdio.h>
60
61#include <openssl/opensslconf.h>
62
60#include "cryptlib.h" 63#include "cryptlib.h"
61#include <openssl/x509.h> 64#include <openssl/x509.h>
62#include <openssl/ec.h> 65#include <openssl/ec.h>
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c
index 9478e5260a..ef87b599f2 100644
--- a/src/lib/libcrypto/ec/ec_asn1.c
+++ b/src/lib/libcrypto/ec/ec_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_asn1.c,v 1.8 2014/07/01 21:26:27 miod Exp $ */ 1/* $OpenBSD: ec_asn1.c,v 1.9 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -57,12 +57,14 @@
57 */ 57 */
58 58
59#include <string.h> 59#include <string.h>
60
61#include <openssl/opensslconf.h>
62
60#include "ec_lcl.h" 63#include "ec_lcl.h"
61#include <openssl/err.h> 64#include <openssl/err.h>
62#include <openssl/asn1t.h> 65#include <openssl/asn1t.h>
63#include <openssl/objects.h> 66#include <openssl/objects.h>
64 67
65
66int 68int
67EC_GROUP_get_basis_type(const EC_GROUP * group) 69EC_GROUP_get_basis_type(const EC_GROUP * group)
68{ 70{
diff --git a/src/lib/libcrypto/ec/ec_curve.c b/src/lib/libcrypto/ec/ec_curve.c
index 32a7301bf9..baac8c7156 100644
--- a/src/lib/libcrypto/ec/ec_curve.c
+++ b/src/lib/libcrypto/ec/ec_curve.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_curve.c,v 1.5 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ec_curve.c,v 1.6 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -69,10 +69,11 @@
69 * 69 *
70 */ 70 */
71 71
72#include <openssl/opensslconf.h>
73
72#include "ec_lcl.h" 74#include "ec_lcl.h"
73#include <openssl/err.h> 75#include <openssl/err.h>
74#include <openssl/obj_mac.h> 76#include <openssl/obj_mac.h>
75#include <openssl/opensslconf.h>
76 77
77typedef struct { 78typedef struct {
78 int field_type, /* either NID_X9_62_prime_field or 79 int field_type, /* either NID_X9_62_prime_field or
diff --git a/src/lib/libcrypto/ec/ec_cvt.c b/src/lib/libcrypto/ec/ec_cvt.c
index 7b70cf7968..a0982064b8 100644
--- a/src/lib/libcrypto/ec/ec_cvt.c
+++ b/src/lib/libcrypto/ec/ec_cvt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_cvt.c,v 1.5 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ec_cvt.c,v 1.6 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -69,10 +69,11 @@
69 * 69 *
70 */ 70 */
71 71
72#include <openssl/opensslconf.h>
73
72#include <openssl/err.h> 74#include <openssl/err.h>
73#include "ec_lcl.h" 75#include "ec_lcl.h"
74 76
75
76EC_GROUP * 77EC_GROUP *
77EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, 78EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, const BIGNUM *b,
78 BN_CTX *ctx) 79 BN_CTX *ctx)
diff --git a/src/lib/libcrypto/ec/ec_err.c b/src/lib/libcrypto/ec/ec_err.c
index 7620a05d84..0ba510adae 100644
--- a/src/lib/libcrypto/ec/ec_err.c
+++ b/src/lib/libcrypto/ec/ec_err.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_err.c,v 1.8 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ec_err.c,v 1.9 2014/07/10 22:45:57 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -59,6 +59,9 @@
59 */ 59 */
60 60
61#include <stdio.h> 61#include <stdio.h>
62
63#include <openssl/opensslconf.h>
64
62#include <openssl/err.h> 65#include <openssl/err.h>
63#include <openssl/ec.h> 66#include <openssl/ec.h>
64 67
diff --git a/src/lib/libcrypto/ec/ec_key.c b/src/lib/libcrypto/ec/ec_key.c
index 939176095f..7067a949da 100644
--- a/src/lib/libcrypto/ec/ec_key.c
+++ b/src/lib/libcrypto/ec/ec_key.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_key.c,v 1.7 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ec_key.c,v 1.8 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -62,6 +62,9 @@
62 */ 62 */
63 63
64#include <string.h> 64#include <string.h>
65
66#include <openssl/opensslconf.h>
67
65#include "ec_lcl.h" 68#include "ec_lcl.h"
66#include <openssl/err.h> 69#include <openssl/err.h>
67 70
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c
index f2a4fb8053..3d8b96eb1f 100644
--- a/src/lib/libcrypto/ec/ec_lib.c
+++ b/src/lib/libcrypto/ec/ec_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_lib.c,v 1.13 2014/07/09 11:10:50 bcook Exp $ */ 1/* $OpenBSD: ec_lib.c,v 1.14 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -63,6 +63,8 @@
63 63
64#include <string.h> 64#include <string.h>
65 65
66#include <openssl/opensslconf.h>
67
66#include <openssl/err.h> 68#include <openssl/err.h>
67#include <openssl/opensslv.h> 69#include <openssl/opensslv.h>
68 70
diff --git a/src/lib/libcrypto/ec/ec_oct.c b/src/lib/libcrypto/ec/ec_oct.c
index cd07890c74..82124a8f80 100644
--- a/src/lib/libcrypto/ec/ec_oct.c
+++ b/src/lib/libcrypto/ec/ec_oct.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_oct.c,v 1.3 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ec_oct.c,v 1.4 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -63,6 +63,8 @@
63 63
64#include <string.h> 64#include <string.h>
65 65
66#include <openssl/opensslconf.h>
67
66#include <openssl/err.h> 68#include <openssl/err.h>
67#include <openssl/opensslv.h> 69#include <openssl/opensslv.h>
68 70
diff --git a/src/lib/libcrypto/ec/eck_prn.c b/src/lib/libcrypto/ec/eck_prn.c
index eba10245d8..fb5ee7f52b 100644
--- a/src/lib/libcrypto/ec/eck_prn.c
+++ b/src/lib/libcrypto/ec/eck_prn.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: eck_prn.c,v 1.7 2014/07/10 13:58:22 jsing Exp $ */ 1/* $OpenBSD: eck_prn.c,v 1.8 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -64,6 +64,8 @@
64#include <stdio.h> 64#include <stdio.h>
65#include <string.h> 65#include <string.h>
66 66
67#include <openssl/opensslconf.h>
68
67#include "cryptlib.h" 69#include "cryptlib.h"
68#include <openssl/evp.h> 70#include <openssl/evp.h>
69#include <openssl/ec.h> 71#include <openssl/ec.h>
diff --git a/src/lib/libcrypto/ec/ecp_nistp224.c b/src/lib/libcrypto/ec/ecp_nistp224.c
index 473d75a72b..c466d2db83 100644
--- a/src/lib/libcrypto/ec/ecp_nistp224.c
+++ b/src/lib/libcrypto/ec/ecp_nistp224.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_nistp224.c,v 1.13 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ecp_nistp224.c,v 1.14 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Written by Emilia Kasper (Google) for the OpenSSL project. 3 * Written by Emilia Kasper (Google) for the OpenSSL project.
4 */ 4 */
@@ -25,12 +25,13 @@
25 * and Adam Langley's public domain 64-bit C implementation of curve25519 25 * and Adam Langley's public domain 64-bit C implementation of curve25519
26 */ 26 */
27 27
28#include <stdint.h>
29#include <string.h>
30
28#include <openssl/opensslconf.h> 31#include <openssl/opensslconf.h>
29#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
30 32
31#include <stdint.h> 33#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
32 34
33#include <string.h>
34#include <openssl/err.h> 35#include <openssl/err.h>
35#include "ec_lcl.h" 36#include "ec_lcl.h"
36 37
diff --git a/src/lib/libcrypto/ec/ecp_nistp256.c b/src/lib/libcrypto/ec/ecp_nistp256.c
index a72b1163ff..7b122e6307 100644
--- a/src/lib/libcrypto/ec/ecp_nistp256.c
+++ b/src/lib/libcrypto/ec/ecp_nistp256.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_nistp256.c,v 1.12 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ecp_nistp256.c,v 1.13 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Written by Adam Langley (Google) for the OpenSSL project 3 * Written by Adam Langley (Google) for the OpenSSL project
4 */ 4 */
@@ -26,12 +26,13 @@
26 * work which got its smarts from Daniel J. Bernstein's work on the same. 26 * work which got its smarts from Daniel J. Bernstein's work on the same.
27 */ 27 */
28 28
29#include <stdint.h>
30#include <string.h>
31
29#include <openssl/opensslconf.h> 32#include <openssl/opensslconf.h>
30#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
31 33
32#include <stdint.h> 34#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
33 35
34#include <string.h>
35#include <openssl/err.h> 36#include <openssl/err.h>
36#include "ec_lcl.h" 37#include "ec_lcl.h"
37 38
diff --git a/src/lib/libcrypto/ec/ecp_nistp521.c b/src/lib/libcrypto/ec/ecp_nistp521.c
index 1ff3837411..cec0a3b470 100644
--- a/src/lib/libcrypto/ec/ecp_nistp521.c
+++ b/src/lib/libcrypto/ec/ecp_nistp521.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_nistp521.c,v 1.13 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ecp_nistp521.c,v 1.14 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Written by Adam Langley (Google) for the OpenSSL project 3 * Written by Adam Langley (Google) for the OpenSSL project
4 */ 4 */
@@ -26,12 +26,13 @@
26 * work which got its smarts from Daniel J. Bernstein's work on the same. 26 * work which got its smarts from Daniel J. Bernstein's work on the same.
27 */ 27 */
28 28
29#include <stdint.h>
30#include <string.h>
31
29#include <openssl/opensslconf.h> 32#include <openssl/opensslconf.h>
30#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
31 33
32#include <stdint.h> 34#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
33 35
34#include <string.h>
35#include <openssl/err.h> 36#include <openssl/err.h>
36#include "ec_lcl.h" 37#include "ec_lcl.h"
37 38
diff --git a/src/lib/libcrypto/ec/ecp_nistputil.c b/src/lib/libcrypto/ec/ecp_nistputil.c
index 87aa979252..ca55b49ba2 100644
--- a/src/lib/libcrypto/ec/ecp_nistputil.c
+++ b/src/lib/libcrypto/ec/ecp_nistputil.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_nistputil.c,v 1.5 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ecp_nistputil.c,v 1.6 2014/07/10 22:45:57 jsing Exp $ */
2/* 2/*
3 * Written by Bodo Moeller for the OpenSSL project. 3 * Written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -18,14 +18,16 @@
18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 */ 19 */
20 20
21#include <stddef.h>
22
21#include <openssl/opensslconf.h> 23#include <openssl/opensslconf.h>
24
22#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 25#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
23 26
24/* 27/*
25 * Common utility functions for ecp_nistp224.c, ecp_nistp256.c, ecp_nistp521.c. 28 * Common utility functions for ecp_nistp224.c, ecp_nistp256.c, ecp_nistp521.c.
26 */ 29 */
27 30
28#include <stddef.h>
29#include "ec_lcl.h" 31#include "ec_lcl.h"
30 32
31/* Convert an array of points into affine coordinates. 33/* Convert an array of points into affine coordinates.