From 0a433ea23c3e1becf99aca61bcf70be49c7bafdb Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 9 May 2013 15:24:32 +0200 Subject: [PATCH] MIT License --- COPYING | 19 +++++++++++++++++++ Makefile | 2 +- src/ecdsa.h | 4 ++++ src/ecmult.h | 4 ++++ src/field.h | 4 ++++ src/field_10x26.h | 4 ++++ src/field_5x52.h | 4 ++++ src/field_gmp.h | 4 ++++ src/group.h | 4 ++++ src/impl/ecdsa.h | 4 ++++ src/impl/ecmult.h | 4 ++++ src/impl/field.h | 4 ++++ src/impl/field_10x26.h | 4 ++++ src/impl/field_5x52.h | 4 ++++ src/impl/field_5x52_asm.h | 4 ++++ src/impl/field_5x52_int128.h | 4 ++++ src/impl/field_gmp.h | 4 ++++ src/impl/group.h | 4 ++++ src/impl/num.h | 4 ++++ src/impl/num_gmp.h | 4 ++++ src/impl/num_openssl.h | 4 ++++ src/impl/util.h | 4 ++++ src/num.h | 4 ++++ src/num_gmp.h | 4 ++++ src/num_openssl.h | 4 ++++ src/secp256k1.c | 4 ++++ src/tests.c | 4 ++++ src/util.h | 4 ++++ 28 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 COPYING diff --git a/COPYING b/COPYING new file mode 100644 index 0000000000..4522a5990e --- /dev/null +++ b/COPYING @@ -0,0 +1,19 @@ +Copyright (c) 2013 Pieter Wuille + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/Makefile b/Makefile index f7d1ab36a0..e9a16093fd 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ obj/secp256k1.o: $(FILES) src/secp256k1.c include/secp256k1.h $(CC) -fPIC -std=c99 $(CFLAGS) $(CFLAGS_EXTRA) -DNDEBUG -O2 src/secp256k1.c -c -o obj/secp256k1.o bench: $(FILES) src/bench.c $(OBJS) - $(CC) -fPIC -std=c99 $(CFLAGS) $(CFLAGS_EXTRA) -DNDEBUG -O2 src/bench.c $(OBJS) $(LDFLAGS_EXTRA) -o bench + $(CC) -fPIC -std=c99 $(CFLAGS) $(CFLAGS_EXTRA) $(CFLAGS_TEST_EXTRA) -DNDEBUG -O2 src/bench.c $(OBJS) $(LDFLAGS_EXTRA) $(LDFLAGS_TEST_EXTRA) -o bench tests: $(FILES) src/tests.c $(OBJS) $(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 diff --git a/src/ecdsa.h b/src/ecdsa.h index 3b4eab6f8e..d9faaa3e86 100644 --- a/src/ecdsa.h +++ b/src/ecdsa.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_ECDSA_ #define _SECP256K1_ECDSA_ diff --git a/src/ecmult.h b/src/ecmult.h index db6248611c..856bd284fe 100644 --- a/src/ecmult.h +++ b/src/ecmult.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_ECMULT_ #define _SECP256K1_ECMULT_ diff --git a/src/field.h b/src/field.h index 039d572d66..7d187d02c5 100644 --- a/src/field.h +++ b/src/field.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_FIELD_ #define _SECP256K1_FIELD_ diff --git a/src/field_10x26.h b/src/field_10x26.h index 72c5829030..d544139e85 100644 --- a/src/field_10x26.h +++ b/src/field_10x26.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_FIELD_REPR_ #define _SECP256K1_FIELD_REPR_ diff --git a/src/field_5x52.h b/src/field_5x52.h index 8ccad0348c..9d5de2cc41 100644 --- a/src/field_5x52.h +++ b/src/field_5x52.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_FIELD_REPR_ #define _SECP256K1_FIELD_REPR_ diff --git a/src/field_gmp.h b/src/field_gmp.h index 44a8c60caf..d51dea0afc 100644 --- a/src/field_gmp.h +++ b/src/field_gmp.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_FIELD_REPR_ #define _SECP256K1_FIELD_REPR_ diff --git a/src/group.h b/src/group.h index 1196299e66..dd601fa0b0 100644 --- a/src/group.h +++ b/src/group.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_GROUP_ #define _SECP256K1_GROUP_ diff --git a/src/impl/ecdsa.h b/src/impl/ecdsa.h index cef667679b..c8d51683b3 100644 --- a/src/impl/ecdsa.h +++ b/src/impl/ecdsa.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_ECDSA_IMPL_H_ #define _SECP256K1_ECDSA_IMPL_H_ diff --git a/src/impl/ecmult.h b/src/impl/ecmult.h index 082848892f..6acb4c4086 100644 --- a/src/impl/ecmult.h +++ b/src/impl/ecmult.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_ECMULT_IMPL_H_ #define _SECP256K1_ECMULT_IMPL_H_ diff --git a/src/impl/field.h b/src/impl/field.h index 9f891c946b..c43188adc2 100644 --- a/src/impl/field.h +++ b/src/impl/field.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_FIELD_IMPL_H_ #define _SECP256K1_FIELD_IMPL_H_ diff --git a/src/impl/field_10x26.h b/src/impl/field_10x26.h index 81747bfdea..449769254c 100644 --- a/src/impl/field_10x26.h +++ b/src/impl/field_10x26.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_FIELD_REPR_IMPL_H_ #define _SECP256K1_FIELD_REPR_IMPL_H_ diff --git a/src/impl/field_5x52.h b/src/impl/field_5x52.h index ff1e4984cc..5347189f1d 100644 --- a/src/impl/field_5x52.h +++ b/src/impl/field_5x52.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_FIELD_REPR_IMPL_H_ #define _SECP256K1_FIELD_REPR_IMPL_H_ diff --git a/src/impl/field_5x52_asm.h b/src/impl/field_5x52_asm.h index 32cd55d058..93c6ab6b58 100644 --- a/src/impl/field_5x52_asm.h +++ b/src/impl/field_5x52_asm.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_FIELD_INNER5X52_IMPL_H_ #define _SECP256K1_FIELD_INNER5X52_IMPL_H_ diff --git a/src/impl/field_5x52_int128.h b/src/impl/field_5x52_int128.h index 8f187def9e..23cb134623 100644 --- a/src/impl/field_5x52_int128.h +++ b/src/impl/field_5x52_int128.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_FIELD_INNER5X52_IMPL_H_ #define _SECP256K1_FIELD_INNER5X52_IMPL_H_ diff --git a/src/impl/field_gmp.h b/src/impl/field_gmp.h index 570b20ca30..6172ef48ea 100644 --- a/src/impl/field_gmp.h +++ b/src/impl/field_gmp.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_FIELD_REPR_IMPL_H_ #define _SECP256K1_FIELD_REPR_IMPL_H_ diff --git a/src/impl/group.h b/src/impl/group.h index a39ae4c01d..37c509a474 100644 --- a/src/impl/group.h +++ b/src/impl/group.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_GROUP_IMPL_H_ #define _SECP256K1_GROUP_IMPL_H_ diff --git a/src/impl/num.h b/src/impl/num.h index f27f0d1f10..fc6d05c3d6 100644 --- a/src/impl/num.h +++ b/src/impl/num.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_NUM_IMPL_H_ #define _SECP256K1_NUM_IMPL_H_ diff --git a/src/impl/num_gmp.h b/src/impl/num_gmp.h index fbdf29c2d1..75ef9dcf68 100644 --- a/src/impl/num_gmp.h +++ b/src/impl/num_gmp.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_NUM_REPR_IMPL_H_ #define _SECP256K1_NUM_REPR_IMPL_H_ diff --git a/src/impl/num_openssl.h b/src/impl/num_openssl.h index 9153252b90..0a54689ac2 100644 --- a/src/impl/num_openssl.h +++ b/src/impl/num_openssl.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_NUM_REPR_IMPL_H_ #define _SECP256K1_NUM_REPR_IMPL_H_ diff --git a/src/impl/util.h b/src/impl/util.h index ef20b83a19..a59a00cac0 100644 --- a/src/impl/util.h +++ b/src/impl/util.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_UTIL_IMPL_H_ #define _SECP256K1_UTIL_IMPL_H_ diff --git a/src/num.h b/src/num.h index fa90a7b429..b2e7462bca 100644 --- a/src/num.h +++ b/src/num.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_NUM_ #define _SECP256K1_NUM_ diff --git a/src/num_gmp.h b/src/num_gmp.h index a4c0b6b728..960df86054 100644 --- a/src/num_gmp.h +++ b/src/num_gmp.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_NUM_REPR_ #define _SECP256K1_NUM_REPR_ diff --git a/src/num_openssl.h b/src/num_openssl.h index de3f1a474f..7d03757f68 100644 --- a/src/num_openssl.h +++ b/src/num_openssl.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_NUM_REPR_ #define _SECP256K1_NUM_REPR_ diff --git a/src/secp256k1.c b/src/secp256k1.c index fa2272385c..1f9e1f6dc9 100644 --- a/src/secp256k1.c +++ b/src/secp256k1.c @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #include "impl/num.h" #include "impl/field.h" #include "impl/group.h" diff --git a/src/tests.c b/src/tests.c index 8ce338bf4f..88b3e5ec77 100644 --- a/src/tests.c +++ b/src/tests.c @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #include #include "impl/num.h" diff --git a/src/util.h b/src/util.h index 3aced7a65f..357c7e06be 100644 --- a/src/util.h +++ b/src/util.h @@ -1,3 +1,7 @@ +// Copyright (c) 2013 Pieter Wuille +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #ifndef _SECP256K1_UTIL_H_ #define _SECP256K1_UTIL_H_