Skip to content

Commit 0a433ea

Browse files
committed
MIT License
1 parent 7b03d83 commit 0a433ea

28 files changed

+124
-1
lines changed

COPYING

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2013 Pieter Wuille
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ obj/secp256k1.o: $(FILES) src/secp256k1.c include/secp256k1.h
2424
$(CC) -fPIC -std=c99 $(CFLAGS) $(CFLAGS_EXTRA) -DNDEBUG -O2 src/secp256k1.c -c -o obj/secp256k1.o
2525

2626
bench: $(FILES) src/bench.c $(OBJS)
27-
$(CC) -fPIC -std=c99 $(CFLAGS) $(CFLAGS_EXTRA) -DNDEBUG -O2 src/bench.c $(OBJS) $(LDFLAGS_EXTRA) -o bench
27+
$(CC) -fPIC -std=c99 $(CFLAGS) $(CFLAGS_EXTRA) $(CFLAGS_TEST_EXTRA) -DNDEBUG -O2 src/bench.c $(OBJS) $(LDFLAGS_EXTRA) $(LDFLAGS_TEST_EXTRA) -o bench
2828

2929
tests: $(FILES) src/tests.c $(OBJS)
3030
$(CC) -std=c99 $(CFLAGS) $(CFLAGS_EXTRA) $(CFLAGS_TEST_EXTRA) -DVERIFY -fstack-protector-all -O2 -ggdb3 src/tests.c $(OBJS) $(LDFLAGS_EXTRA) $(LDFLAGS_TEST_EXTRA) -o tests

src/ecdsa.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_ECDSA_
26
#define _SECP256K1_ECDSA_
37

src/ecmult.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_ECMULT_
26
#define _SECP256K1_ECMULT_
37

src/field.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_FIELD_
26
#define _SECP256K1_FIELD_
37

src/field_10x26.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_FIELD_REPR_
26
#define _SECP256K1_FIELD_REPR_
37

src/field_5x52.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_FIELD_REPR_
26
#define _SECP256K1_FIELD_REPR_
37

src/field_gmp.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_FIELD_REPR_
26
#define _SECP256K1_FIELD_REPR_
37

src/group.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_GROUP_
26
#define _SECP256K1_GROUP_
37

src/impl/ecdsa.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_ECDSA_IMPL_H_
26
#define _SECP256K1_ECDSA_IMPL_H_
37

src/impl/ecmult.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_ECMULT_IMPL_H_
26
#define _SECP256K1_ECMULT_IMPL_H_
37

src/impl/field.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_FIELD_IMPL_H_
26
#define _SECP256K1_FIELD_IMPL_H_
37

src/impl/field_10x26.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_FIELD_REPR_IMPL_H_
26
#define _SECP256K1_FIELD_REPR_IMPL_H_
37

src/impl/field_5x52.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_FIELD_REPR_IMPL_H_
26
#define _SECP256K1_FIELD_REPR_IMPL_H_
37

src/impl/field_5x52_asm.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_FIELD_INNER5X52_IMPL_H_
26
#define _SECP256K1_FIELD_INNER5X52_IMPL_H_
37

src/impl/field_5x52_int128.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_FIELD_INNER5X52_IMPL_H_
26
#define _SECP256K1_FIELD_INNER5X52_IMPL_H_
37

src/impl/field_gmp.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_FIELD_REPR_IMPL_H_
26
#define _SECP256K1_FIELD_REPR_IMPL_H_
37

src/impl/group.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_GROUP_IMPL_H_
26
#define _SECP256K1_GROUP_IMPL_H_
37

src/impl/num.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_NUM_IMPL_H_
26
#define _SECP256K1_NUM_IMPL_H_
37

src/impl/num_gmp.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_NUM_REPR_IMPL_H_
26
#define _SECP256K1_NUM_REPR_IMPL_H_
37

src/impl/num_openssl.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_NUM_REPR_IMPL_H_
26
#define _SECP256K1_NUM_REPR_IMPL_H_
37

src/impl/util.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_UTIL_IMPL_H_
26
#define _SECP256K1_UTIL_IMPL_H_
37

src/num.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_NUM_
26
#define _SECP256K1_NUM_
37

src/num_gmp.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_NUM_REPR_
26
#define _SECP256K1_NUM_REPR_
37

src/num_openssl.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_NUM_REPR_
26
#define _SECP256K1_NUM_REPR_
37

src/secp256k1.c

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#include "impl/num.h"
26
#include "impl/field.h"
37
#include "impl/group.h"

src/tests.c

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#include <assert.h>
26

37
#include "impl/num.h"

src/util.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2013 Pieter Wuille
2+
// Distributed under the MIT/X11 software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
15
#ifndef _SECP256K1_UTIL_H_
26
#define _SECP256K1_UTIL_H_
37

0 commit comments

Comments
 (0)