[Python-modules-commits] [python-nacl] 02/04: Import python-nacl_1.0.1.orig.tar.gz
Tristan Seligmann
mithrandi at moszumanska.debian.org
Sun Jan 24 16:00:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
mithrandi pushed a commit to branch master
in repository python-nacl.
commit 6a0a6e004324b96f645db4220dcf96c4c80de2c8
Author: Tristan Seligmann <mithrandi at debian.org>
Date: Sun Jan 24 17:56:28 2016 +0200
Import python-nacl_1.0.1.orig.tar.gz
---
MANIFEST.in | 8 +-
PKG-INFO | 73 +-
README.rst | 65 +-
docs/secret.rst | 2 +-
docs/signing.rst | 6 +-
setup.py | 89 +-
src/PyNaCl.egg-info/PKG-INFO | 73 +-
src/PyNaCl.egg-info/SOURCES.txt | 824 +--
src/PyNaCl.egg-info/requires.txt | 2 +-
src/PyNaCl.egg-info/top_level.txt | 1 +
src/bindings/build.py | 55 +
src/{nacl/_lib => bindings}/crypto_box.h | 0
src/{nacl/_lib => bindings}/crypto_hash.h | 0
src/{nacl/_lib => bindings}/crypto_scalarmult.h | 0
src/{nacl/_lib => bindings}/crypto_secretbox.h | 0
src/{nacl/_lib => bindings}/crypto_sign.h | 6 +
src/{nacl/_lib => bindings}/randombytes.h | 0
src/{nacl/_lib => bindings}/sodium_core.h | 0
src/libsodium/AUTHORS | 16 +-
src/libsodium/ChangeLog | 115 +
src/libsodium/LICENSE | 2 +-
src/libsodium/Makefile.in | 80 +-
src/libsodium/README.markdown | 9 +-
src/libsodium/THANKS | 10 +
src/libsodium/aclocal.m4 | 70 +-
src/libsodium/autogen.sh | 23 +-
src/libsodium/build-aux/compile | 2 +-
src/libsodium/build-aux/config.guess | 173 +-
src/libsodium/build-aux/config.sub | 36 +-
src/libsodium/build-aux/depcomp | 2 +-
src/libsodium/build-aux/install-sh | 366 +-
src/libsodium/build-aux/ltmain.sh | 5528 +++++++++++++-------
src/libsodium/build-aux/missing | 2 +-
src/libsodium/build-aux/test-driver | 15 +-
src/libsodium/configure | 3316 ++++++++----
src/libsodium/configure.ac | 208 +-
src/libsodium/dist-build/Makefile.am | 9 +-
src/libsodium/dist-build/Makefile.in | 42 +-
src/libsodium/dist-build/android-arm.sh | 5 +-
src/libsodium/dist-build/android-armv7-a.sh | 4 +
src/libsodium/dist-build/android-armv8-a.sh | 4 +
src/libsodium/dist-build/android-build.sh | 23 +-
src/libsodium/dist-build/android-mips.sh | 3 -
src/libsodium/dist-build/android-mips32.sh | 4 +
src/libsodium/dist-build/android-mips64.sh | 4 +
src/libsodium/dist-build/android-x86-64.sh | 4 +
src/libsodium/dist-build/android-x86.sh | 5 +-
src/libsodium/dist-build/emscripten.sh | 90 +-
src/libsodium/dist-build/ios.sh | 97 +-
src/libsodium/dist-build/msys2-win32.sh | 2 +
src/libsodium/dist-build/msys2-win64.sh | 2 +
src/libsodium/dist-build/nativeclient.sh | 28 +
src/libsodium/libsodium-uninstalled.pc.in | 6 +
src/libsodium/libsodium.sln | 6 +-
src/libsodium/libsodium.vcxproj | 107 +-
src/libsodium/libsodium.vcxproj.filters | 211 +-
src/libsodium/m4/ax_check_compile_flag.m4 | 4 +-
src/libsodium/m4/ax_check_define.m4 | 92 +
src/libsodium/m4/ax_check_link_flag.m4 | 5 +-
src/libsodium/m4/libtool.m4 | 2561 +++++----
src/libsodium/m4/ltoptions.m4 | 127 +-
src/libsodium/m4/ltsugar.m4 | 7 +-
src/libsodium/m4/ltversion.m4 | 12 +-
src/libsodium/m4/lt~obsolete.m4 | 7 +-
src/libsodium/msvc-scripts/Makefile.in | 33 +-
src/libsodium/msvc-scripts/process.bat | 6 +-
src/libsodium/msvc-scripts/sodium.props | 4 +-
src/libsodium/src/Makefile.in | 33 +-
src/libsodium/src/libsodium/Makefile.am | 205 +-
src/libsodium/src/libsodium/Makefile.in | 1633 ++----
.../aes256gcm/aesni/aead_aes256gcm_aesni.c | 866 +++
.../sodium/aead_chacha20poly1305.c | 155 +-
.../crypto_auth/hmacsha256/auth_hmacsha256_api.c | 5 +
.../src/libsodium/crypto_auth/hmacsha256/cp/api.h | 9 -
.../crypto_auth/hmacsha256/cp/hmac_hmacsha256.c | 8 +-
.../crypto_auth/hmacsha256/cp/verify_hmacsha256.c | 8 +-
.../crypto_auth/hmacsha512/auth_hmacsha512_api.c | 5 +
.../src/libsodium/crypto_auth/hmacsha512/cp/api.h | 9 -
.../crypto_auth/hmacsha512/cp/hmac_hmacsha512.c | 8 +-
.../crypto_auth/hmacsha512/cp/verify_hmacsha512.c | 10 +-
.../hmacsha512256/auth_hmacsha512256_api.c | 5 +
.../libsodium/crypto_auth/hmacsha512256/cp/api.h | 9 -
.../hmacsha512256/cp/hmac_hmacsha512256.c | 8 +-
.../hmacsha512256/cp/verify_hmacsha512256.c | 12 +-
.../src/libsodium/crypto_box/crypto_box_easy.c | 58 +-
.../src/libsodium/crypto_box/crypto_box_seal.c | 67 +
.../ref/after_curve25519xsalsa20poly1305.c | 6 +-
.../curve25519xsalsa20poly1305/ref/api.h | 20 -
.../ref/before_curve25519xsalsa20poly1305.c | 8 +-
.../ref/box_curve25519xsalsa20poly1305.c | 33 +-
.../ref/keypair_curve25519xsalsa20poly1305.c | 8 +-
.../curve25519}/ref10/base.h | 0
.../curve25519}/ref10/base2.h | 0
.../curve25519/ref10/curve25519_ref10.c | 2233 ++++++++
.../curve25519/ref10/curve25519_ref10.h | 160 +
.../src/libsodium/crypto_core/hsalsa20/ref2/api.h | 10 -
.../crypto_core/hsalsa20/ref2/core_hsalsa20.c | 4 +-
.../src/libsodium/crypto_core/salsa20/ref/api.h | 10 -
.../crypto_core/salsa20/ref/core_salsa20.c | 4 +-
.../src/libsodium/crypto_core/salsa2012/ref/api.h | 10 -
.../crypto_core/salsa2012/ref/core_salsa2012.c | 4 +-
.../src/libsodium/crypto_core/salsa208/ref/api.h | 10 -
.../crypto_core/salsa208/ref/core_salsa208.c | 4 +-
.../libsodium/crypto_generichash/blake2/ref/api.h | 2 -
.../crypto_generichash/blake2/ref/blake2-impl.h | 8 +-
.../crypto_generichash/blake2/ref/blake2.h | 53 +-
.../blake2/ref/blake2b-compress-ref.c | 93 +
.../blake2/ref/blake2b-compress-sse41.c | 80 +
.../blake2/ref/blake2b-compress-ssse3.c | 89 +
.../blake2/ref/blake2b-load-sse2.h | 68 +
.../blake2/ref/blake2b-load-sse41.h | 402 ++
.../crypto_generichash/blake2/ref/blake2b-ref.c | 208 +-
.../crypto_generichash/blake2/ref/blake2b-round.h | 123 +
.../blake2/ref/generichash_blake2b.c | 8 +-
.../crypto_generichash/crypto_generichash.c | 12 +-
.../src/libsodium/crypto_hash/sha256/cp/api.h | 10 -
.../libsodium/crypto_hash/sha256/cp/hash_sha256.c | 59 +-
.../libsodium/crypto_hash/sha256/hash_sha256_api.c | 5 +
.../src/libsodium/crypto_hash/sha512/cp/api.h | 10 -
.../libsodium/crypto_hash/sha512/cp/hash_sha512.c | 24 +-
.../libsodium/crypto_hash/sha512/hash_sha512_api.c | 5 +
.../crypto_onetimeauth/crypto_onetimeauth.c | 18 +-
.../{auth_poly1305_donna.c => poly1305_donna.c} | 54 +-
.../poly1305/donna/poly1305_donna.h | 32 +-
.../poly1305/donna/poly1305_donna32.h | 23 +-
.../poly1305/donna/poly1305_donna64.h | 30 +-
.../poly1305/donna/verify_poly1305_donna.c | 15 -
.../poly1305/onetimeauth_poly1305.c | 43 +-
.../poly1305/onetimeauth_poly1305.h | 23 +
.../poly1305/onetimeauth_poly1305_api.c | 11 -
.../poly1305/onetimeauth_poly1305_try.c | 13 -
.../poly1305/sse2/poly1305_sse2.c | 708 +++
.../poly1305/sse2/poly1305_sse2.h | 31 +
.../scryptsalsa208sha256/crypto_scrypt-common.c | 6 +-
.../scryptsalsa208sha256/crypto_scrypt.h | 13 +
.../nosse/pwhash_scryptsalsa208sha256_nosse.c | 89 +-
.../scryptsalsa208sha256/pbkdf2-sha256.c | 5 +-
.../pwhash_scryptsalsa208sha256.c | 24 +-
.../scryptsalsa208sha256/scrypt_platform.c | 4 +-
.../sse/pwhash_scryptsalsa208sha256_sse.c | 3 +-
.../crypto_scalarmult/crypto_scalarmult.c | 23 +-
.../crypto_scalarmult/curve25519/donna_c64/api.h | 9 -
.../donna_c64/base_curve25519_donna_c64.c | 13 -
...rve25519_donna_c64.c => curve25519_donna_c64.c} | 59 +-
.../curve25519/donna_c64/curve25519_donna_c64.h | 9 +
.../crypto_scalarmult/curve25519/ref10/api.h | 5 -
.../curve25519/ref10/base_curve25519_ref10.c | 14 -
.../crypto_scalarmult/curve25519/ref10/fe.h | 44 -
.../curve25519/ref10/fe_0_curve25519_ref10.c | 23 -
.../curve25519/ref10/fe_1_curve25519_ref10.c | 23 -
.../curve25519/ref10/fe_add_curve25519_ref10.c | 61 -
.../curve25519/ref10/fe_copy_curve25519_ref10.c | 33 -
.../curve25519/ref10/fe_cswap_curve25519_ref10.c | 77 -
.../ref10/fe_frombytes_curve25519_ref10.c | 73 -
.../curve25519/ref10/fe_invert_curve25519_ref10.c | 18 -
.../ref10/fe_mul121666_curve25519_ref10.c | 74 -
.../curve25519/ref10/fe_mul_curve25519_ref10.c | 257 -
.../curve25519/ref10/fe_sq_curve25519_ref10.c | 153 -
.../curve25519/ref10/fe_sub_curve25519_ref10.c | 61 -
.../curve25519/ref10/fe_tobytes_curve25519_ref10.c | 123 -
.../curve25519/ref10/montgomery.h | 140 -
.../crypto_scalarmult/curve25519/ref10/pow225521.h | 160 -
.../curve25519/ref10/scalarmult_curve25519_ref10.c | 54 -
.../curve25519/ref10/x25519_ref10.c | 255 +
.../curve25519/ref10/x25519_ref10.h | 9 +
.../crypto_scalarmult/curve25519/sandy2x/consts.S | 25 +
.../curve25519/sandy2x/consts_namespace.h | 20 +
.../curve25519/sandy2x/curve25519_sandy2x.c | 114 +
.../curve25519/sandy2x/curve25519_sandy2x.h | 9 +
.../crypto_scalarmult/curve25519/sandy2x/fe.h | 25 +
.../crypto_scalarmult/curve25519/sandy2x/fe51.h | 33 +
.../curve25519/sandy2x/fe51_invert.c | 57 +
.../curve25519/sandy2x/fe51_mul.S | 189 +
.../curve25519/sandy2x/fe51_namespace.h | 16 +
.../curve25519/sandy2x/fe51_nsquare.S | 165 +
.../curve25519/sandy2x/fe51_pack.S | 219 +
.../curve25519/sandy2x/fe_frombytes_sandy2x.c | 76 +
.../crypto_scalarmult/curve25519/sandy2x/ladder.S | 1432 +++++
.../crypto_scalarmult/curve25519/sandy2x/ladder.h | 18 +
.../curve25519/sandy2x/ladder_base.S | 1287 +++++
.../curve25519/sandy2x/ladder_base.h | 18 +
.../curve25519/sandy2x/ladder_base_namespace.h | 8 +
.../curve25519/sandy2x/ladder_namespace.h | 8 +
.../crypto_scalarmult/curve25519/sandy2x/sandy2x.S | 17 +
.../curve25519/scalarmult_curve25519.c | 67 +
.../curve25519/scalarmult_curve25519.h | 11 +
.../curve25519/scalarmult_curve25519_api.c | 14 -
.../crypto_secretbox/crypto_secretbox_easy.c | 18 +-
.../crypto_secretbox/xsalsa20poly1305/ref/api.h | 11 -
.../xsalsa20poly1305/ref/box_xsalsa20poly1305.c | 6 +-
.../libsodium/crypto_shorthash/siphash24/ref/api.h | 7 -
.../siphash24/ref/shorthash_siphash24.c | 5 +-
.../src/libsodium/crypto_sign/crypto_sign.c | 12 +-
.../src/libsodium/crypto_sign/ed25519/ref10/api.h | 15 -
.../src/libsodium/crypto_sign/ed25519/ref10/d.h | 1 -
.../src/libsodium/crypto_sign/ed25519/ref10/d2.h | 1 -
.../src/libsodium/crypto_sign/ed25519/ref10/fe.h | 56 -
.../src/libsodium/crypto_sign/ed25519/ref10/fe_0.c | 19 -
.../src/libsodium/crypto_sign/ed25519/ref10/fe_1.c | 19 -
.../libsodium/crypto_sign/ed25519/ref10/fe_add.c | 57 -
.../libsodium/crypto_sign/ed25519/ref10/fe_cmov.c | 63 -
.../libsodium/crypto_sign/ed25519/ref10/fe_copy.c | 29 -
.../crypto_sign/ed25519/ref10/fe_frombytes.c | 73 -
.../crypto_sign/ed25519/ref10/fe_invert.c | 14 -
.../crypto_sign/ed25519/ref10/fe_isnegative.c | 16 -
.../crypto_sign/ed25519/ref10/fe_isnonzero.c | 19 -
.../libsodium/crypto_sign/ed25519/ref10/fe_mul.c | 253 -
.../libsodium/crypto_sign/ed25519/ref10/fe_neg.c | 45 -
.../crypto_sign/ed25519/ref10/fe_pow22523.c | 13 -
.../libsodium/crypto_sign/ed25519/ref10/fe_sq.c | 149 -
.../libsodium/crypto_sign/ed25519/ref10/fe_sq2.c | 160 -
.../libsodium/crypto_sign/ed25519/ref10/fe_sub.c | 57 -
.../crypto_sign/ed25519/ref10/fe_tobytes.c | 119 -
.../src/libsodium/crypto_sign/ed25519/ref10/ge.h | 95 -
.../libsodium/crypto_sign/ed25519/ref10/ge_add.c | 11 -
.../libsodium/crypto_sign/ed25519/ref10/ge_add.h | 97 -
.../ed25519/ref10/ge_double_scalarmult.c | 96 -
.../crypto_sign/ed25519/ref10/ge_frombytes.c | 50 -
.../libsodium/crypto_sign/ed25519/ref10/ge_madd.c | 11 -
.../libsodium/crypto_sign/ed25519/ref10/ge_madd.h | 88 -
.../libsodium/crypto_sign/ed25519/ref10/ge_msub.c | 11 -
.../libsodium/crypto_sign/ed25519/ref10/ge_msub.h | 88 -
.../crypto_sign/ed25519/ref10/ge_p1p1_to_p2.c | 12 -
.../crypto_sign/ed25519/ref10/ge_p1p1_to_p3.c | 13 -
.../libsodium/crypto_sign/ed25519/ref10/ge_p2_0.c | 8 -
.../crypto_sign/ed25519/ref10/ge_p2_dbl.c | 11 -
.../crypto_sign/ed25519/ref10/ge_p2_dbl.h | 73 -
.../libsodium/crypto_sign/ed25519/ref10/ge_p3_0.c | 9 -
.../crypto_sign/ed25519/ref10/ge_p3_dbl.c | 12 -
.../crypto_sign/ed25519/ref10/ge_p3_to_cached.c | 17 -
.../crypto_sign/ed25519/ref10/ge_p3_to_p2.c | 12 -
.../crypto_sign/ed25519/ref10/ge_p3_tobytes.c | 14 -
.../crypto_sign/ed25519/ref10/ge_precomp_0.c | 8 -
.../crypto_sign/ed25519/ref10/ge_scalarmult_base.c | 111 -
.../libsodium/crypto_sign/ed25519/ref10/ge_sub.c | 11 -
.../libsodium/crypto_sign/ed25519/ref10/ge_sub.h | 97 -
.../crypto_sign/ed25519/ref10/ge_tobytes.c | 14 -
.../libsodium/crypto_sign/ed25519/ref10/keypair.c | 17 +-
.../libsodium/crypto_sign/ed25519/ref10/obsolete.c | 111 +
.../src/libsodium/crypto_sign/ed25519/ref10/open.c | 37 +-
.../libsodium/crypto_sign/ed25519/ref10/pow22523.h | 160 -
.../crypto_sign/ed25519/ref10/pow225521.h | 160 -
.../src/libsodium/crypto_sign/ed25519/ref10/sc.h | 15 -
.../crypto_sign/ed25519/ref10/sc_muladd.c | 368 --
.../crypto_sign/ed25519/ref10/sc_reduce.c | 275 -
.../src/libsodium/crypto_sign/ed25519/ref10/sign.c | 40 +-
.../libsodium/crypto_sign/ed25519/ref10/sqrtm1.h | 1 -
.../crypto_sign/edwards25519sha512batch/ref/api.h | 12 -
.../edwards25519sha512batch/ref/fe25519.h | 54 -
.../ref/fe25519_edwards25519sha512batch.c | 348 --
.../edwards25519sha512batch/ref/ge25519.h | 34 -
.../ref/ge25519_edwards25519sha512batch.c | 230 -
.../edwards25519sha512batch/ref/sc25519.h | 51 -
.../ref/sc25519_edwards25519sha512batch.c | 150 -
.../ref/sign_edwards25519sha512batch.c | 102 -
.../sign_edwards25519sha512batch_api.c | 16 -
.../aes128ctr/portable/afternm_aes128ctr.c | 4 +-
.../crypto_stream/aes128ctr/portable/api.h | 13 -
.../aes128ctr/portable/beforenm_aes128ctr.c | 4 +-
.../aes128ctr/portable/stream_aes128ctr.c | 19 +-
.../aes128ctr/portable/xor_afternm_aes128ctr.c | 5 +-
.../src/libsodium/crypto_stream/chacha20/ref/api.h | 12 -
.../chacha20/ref/stream_chacha20_ref.c | 166 +-
.../chacha20/ref/stream_chacha20_ref.h | 27 +
.../crypto_stream/chacha20/stream_chacha20.c | 85 +
.../crypto_stream/chacha20/stream_chacha20.h | 22 +
.../crypto_stream/chacha20/stream_chacha20_api.c | 36 -
.../chacha20/vec/stream_chacha20_vec.c | 336 ++
.../chacha20/vec/stream_chacha20_vec.h | 27 +
.../crypto_stream/salsa20/amd64_xmm6/api.h | 1 -
.../salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S | 2 +-
.../src/libsodium/crypto_stream/salsa20/ref/api.h | 5 -
.../crypto_stream/salsa20/ref/stream_salsa20_ref.c | 8 +-
.../crypto_stream/salsa20/ref/xor_salsa20_ref.c | 6 +-
.../libsodium/crypto_stream/salsa2012/ref/api.h | 10 -
.../crypto_stream/salsa2012/ref/stream_salsa2012.c | 20 +-
.../crypto_stream/salsa2012/ref/xor_salsa2012.c | 20 +-
.../src/libsodium/crypto_stream/salsa208/ref/api.h | 9 -
.../crypto_stream/salsa208/ref/stream_salsa208.c | 20 +-
.../crypto_stream/salsa208/ref/xor_salsa208.c | 20 +-
.../src/libsodium/crypto_stream/xsalsa20/ref/api.h | 10 -
.../crypto_stream/xsalsa20/ref/stream_xsalsa20.c | 10 +-
.../crypto_stream/xsalsa20/ref/xor_xsalsa20.c | 22 +-
.../src/libsodium/crypto_verify/16/ref/api.h | 2 -
.../src/libsodium/crypto_verify/16/ref/verify_16.c | 35 +-
.../src/libsodium/crypto_verify/32/ref/api.h | 2 -
.../src/libsodium/crypto_verify/32/ref/verify_32.c | 51 +-
.../src/libsodium/crypto_verify/64/ref/api.h | 2 -
.../src/libsodium/crypto_verify/64/ref/verify_64.c | 83 +-
src/libsodium/src/libsodium/include/Makefile.am | 6 +
src/libsodium/src/libsodium/include/Makefile.in | 131 +-
src/libsodium/src/libsodium/include/sodium.h | 92 +-
src/libsodium/src/libsodium/include/sodium/core.h | 3 +-
.../include/sodium/crypto_aead_aes256gcm.h | 91 +
.../include/sodium/crypto_aead_chacha20poly1305.h | 35 +-
.../src/libsodium/include/sodium/crypto_auth.h | 4 +-
.../include/sodium/crypto_auth_hmacsha256.h | 17 +-
.../include/sodium/crypto_auth_hmacsha512.h | 17 +-
.../include/sodium/crypto_auth_hmacsha512256.h | 11 +-
.../src/libsodium/include/sodium/crypto_box.h | 132 +-
.../sodium/crypto_box_curve25519xsalsa20poly1305.h | 12 +-
.../libsodium/include/sodium/crypto_generichash.h | 2 +
.../include/sodium/crypto_generichash_blake2b.h | 26 +-
.../src/libsodium/include/sodium/crypto_hash.h | 3 +-
.../libsodium/include/sodium/crypto_hash_sha256.h | 4 +-
.../libsodium/include/sodium/crypto_hash_sha512.h | 2 +
.../libsodium/include/sodium/crypto_onetimeauth.h | 5 +-
.../include/sodium/crypto_onetimeauth_poly1305.h | 42 +-
.../sodium/crypto_pwhash_scryptsalsa208sha256.h | 22 +-
.../libsodium/include/sodium/crypto_scalarmult.h | 3 +-
.../include/sodium/crypto_scalarmult_curve25519.h | 7 +-
.../libsodium/include/sodium/crypto_secretbox.h | 46 +-
.../src/libsodium/include/sodium/crypto_sign.h | 13 +-
.../libsodium/include/sodium/crypto_sign_ed25519.h | 15 +-
.../sodium/crypto_sign_edwards25519sha512batch.h | 26 +-
.../include/sodium/crypto_stream_chacha20.h | 28 +
.../include/sodium/crypto_stream_xsalsa20.h | 6 +
.../libsodium/include/sodium/crypto_verify_16.h | 3 +-
.../libsodium/include/sodium/crypto_verify_32.h | 3 +-
.../libsodium/include/sodium/crypto_verify_64.h | 3 +-
.../src/libsodium/include/sodium/export.h | 14 +-
.../src/libsodium/include/sodium/randombytes.h | 14 +-
.../include/sodium/randombytes_nativeclient.h | 23 +
.../include/sodium/randombytes_salsa20_random.h | 28 +-
.../include/sodium/randombytes_sysrandom.h | 28 +-
.../src/libsodium/include/sodium/runtime.h | 22 +-
src/libsodium/src/libsodium/include/sodium/utils.h | 55 +-
.../nativeclient/randombytes_nativeclient.c | 49 +
.../src/libsodium/randombytes/randombytes.c | 102 +-
.../salsa20/randombytes_salsa20_random.c | 344 +-
.../randombytes/sysrandom/randombytes_sysrandom.c | 182 +-
src/libsodium/src/libsodium/sodium/core.c | 21 +-
src/libsodium/src/libsodium/sodium/runtime.c | 108 +-
src/libsodium/src/libsodium/sodium/utils.c | 395 +-
src/libsodium/test/Makefile.am | 2 +-
src/libsodium/test/Makefile.in | 35 +-
src/libsodium/test/default/Makefile.am | 153 +-
src/libsodium/test/default/Makefile.in | 386 +-
src/libsodium/test/default/aead_aes256gcm.c | 3211 ++++++++++++
src/libsodium/test/default/aead_aes256gcm.exp | 1 +
src/libsodium/test/default/aead_chacha20poly1305.c | 167 +-
.../test/default/aead_chacha20poly1305.exp | 51 +
src/libsodium/test/default/auth.c | 20 +-
src/libsodium/test/default/auth2.c | 6 +-
src/libsodium/test/default/auth3.c | 6 +-
src/libsodium/test/default/auth5.c | 10 +-
src/libsodium/test/default/auth6.c | 6 +-
src/libsodium/test/default/auth7.c | 10 +-
src/libsodium/test/default/box.c | 34 +-
src/libsodium/test/default/box2.c | 26 +-
src/libsodium/test/default/box7.c | 40 +-
src/libsodium/test/default/box8.c | 53 +-
src/libsodium/test/default/box_easy.c | 41 +-
src/libsodium/test/default/box_easy.exp | 22 +-
src/libsodium/test/default/box_easy2.c | 119 +-
src/libsodium/test/default/box_easy2.exp | 3 +
src/libsodium/test/default/box_seal.c | 43 +
.../test/default/{verify1.exp => box_seal.exp} | 2 -
src/libsodium/test/default/box_seed.c | 2 +-
src/libsodium/test/default/chacha20.c | 115 +-
src/libsodium/test/default/chacha20.exp | 11 +
src/libsodium/test/default/cmptest.h | 28 +-
src/libsodium/test/default/core1.c | 11 +-
src/libsodium/test/default/core2.c | 11 +-
src/libsodium/test/default/core3.c | 15 +-
src/libsodium/test/default/core4.c | 19 +-
src/libsodium/test/default/core5.c | 12 +-
src/libsodium/test/default/core6.c | 14 +-
src/libsodium/test/default/ed25519_convert.c | 8 +-
src/libsodium/test/default/generichash.c | 1348 ++++-
src/libsodium/test/default/generichash.exp | 1 -
src/libsodium/test/default/generichash2.c | 4 +-
src/libsodium/test/default/generichash3.c | 25 +-
src/libsodium/test/default/hash.c | 8 +-
src/libsodium/test/default/hash3.c | 4 +-
src/libsodium/test/default/onetimeauth.c | 8 +-
src/libsodium/test/default/onetimeauth2.c | 9 +-
src/libsodium/test/default/onetimeauth7.c | 10 +-
src/libsodium/test/default/pre.js.inc | 20 +
src/libsodium/test/default/pwhash.c | 33 +-
src/libsodium/test/default/pwhash_scrypt_ll.c | 4 +-
src/libsodium/test/default/randombytes.c | 54 +-
src/libsodium/test/default/scalarmult.c | 60 +-
src/libsodium/test/default/scalarmult.exp | 9 +-
src/libsodium/test/default/scalarmult2.c | 4 +-
src/libsodium/test/default/scalarmult5.c | 10 +-
src/libsodium/test/default/scalarmult6.c | 10 +-
src/libsodium/test/default/scalarmult7.c | 18 +-
src/libsodium/test/default/secretbox.c | 22 +-
src/libsodium/test/default/secretbox.exp | 19 +
src/libsodium/test/default/secretbox2.c | 13 +-
src/libsodium/test/default/secretbox7.c | 10 +-
src/libsodium/test/default/secretbox8.c | 12 +-
src/libsodium/test/default/secretbox_easy.c | 76 +-
src/libsodium/test/default/secretbox_easy.exp | 45 +-
src/libsodium/test/default/secretbox_easy2.c | 40 +-
src/libsodium/test/default/sign.c | 7 +-
src/libsodium/test/default/sodium_core.c | 4 +
src/libsodium/test/default/sodium_utils.c | 134 +-
src/libsodium/test/default/sodium_utils.exp | 11 +
src/libsodium/test/default/sodium_utils2.c | 14 +-
src/libsodium/test/default/sodium_utils3.c | 7 +-
src/libsodium/test/default/stream.c | 28 +-
src/libsodium/test/default/stream.exp | 1 +
src/libsodium/test/default/stream2.c | 22 +-
src/libsodium/test/default/stream2.exp | 1 +
src/libsodium/test/default/stream3.c | 11 +-
src/libsodium/test/default/stream4.c | 13 +-
src/libsodium/test/default/verify1.c | 79 +-
src/libsodium/test/default/verify1.exp | 8 +-
src/libsodium/test/quirks/quirks.h | 26 +
src/libsodium/test/quirks/windows/windows-quirks.h | 18 -
src/nacl/__init__.py | 8 +-
src/nacl/_lib/__init__.py | 76 -
src/nacl/bindings/__init__.py | 7 +-
src/nacl/bindings/crypto_box.py | 46 +-
src/nacl/bindings/crypto_hash.py | 27 +-
src/nacl/bindings/crypto_scalarmult.py | 10 +-
src/nacl/bindings/crypto_secretbox.py | 10 +-
src/nacl/bindings/crypto_sign.py | 94 +-
src/nacl/bindings/randombytes.py | 6 +-
src/nacl/bindings/sodium_core.py | 2 +-
src/nacl/signing.py | 24 +
tests/test_bindings.py | 23 +
tests/test_signing.py | 19 +
tox.ini | 3 +-
426 files changed, 28499 insertions(+), 14815 deletions(-)
diff --git a/MANIFEST.in b/MANIFEST.in
index 87d9361..72fc28e 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -29,4 +29,10 @@ recursive-include tests/data *
global-exclude __pycache__/*
# Add PyNaCl header files
-recursive-include src/nacl/_lib *.h
+recursive-include src/bindings *.py *.h
+
+# Remove our travis files
+exclude .travis.yml
+exclude .travis
+exclude .travis/install.sh
+exclude .travis/run.sh
diff --git a/PKG-INFO b/PKG-INFO
index 309f5f3..9020164 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,10 +1,10 @@
Metadata-Version: 1.1
Name: PyNaCl
-Version: 0.3.0
+Version: 1.0.1
Summary: Python binding to the Networking and Cryptography (NaCl) library
Home-page: https://github.com/pyca/pynacl/
-Author: Donald Stufft
-Author-email: donald at stufft.io
+Author: The PyNaCl developers
+Author-email: cryptography-dev at python.org
License: Apache License 2.0
Description: PyNaCl
======
@@ -23,23 +23,42 @@ Description: PyNaCl
a crypto library with the stated goal of improving usability, security and
speed.
- .. _Networking and Cryptography library: http://nacl.cr.yp.to/
+ .. _Networking and Cryptography library: https://nacl.cr.yp.to/
Installation
------------
- PyNaCl relies on libsodium_, a portable C library which can be compiled
- on a variety of systems. It may already be available from your package
- manager.
+
+ Linux
+ ~~~~~
+
+ PyNaCl relies on libsodium_, a portable C library. A copy is bundled
+ with PyNaCl so to install you can run:
+
+ .. code-block:: console
+
+ $ pip install pynacl
+
+ If you'd prefer to use one provided by your distribution you can disable
+ the bundled copy during install by running:
+
+ .. code-block:: console
+
+ $ SODIUM_INSTALL=system pip install pynacl
+
.. _libsodium: https://github.com/jedisct1/libsodium
- Once libsodium is installed, PyNaCl can be installed by:
+ Mac OS X & Windows
+ ~~~~~~~~~~~~~~~~~~
- .. code-block:: bash
+ PyNaCl ships as a binary wheel on OS X and Windows so all dependencies
+ are included. Make sure you have an up-to-date pip and run:
- $ python setup.py install
+ .. code-block:: console
+
+ $ pip install pynacl
Features
@@ -48,20 +67,34 @@ Description: PyNaCl
* Digital signatures
* Secret-key encryption
* Public-key encryption
- * HMAC (coming soon)
Changes
-------
- * 0.3.0: the low-level API (`nacl.c.*`) has been changed to match the
- upstream NaCl C/C++ conventions (as well as those of other NaCl bindings).
- The order of arguments and return values has changed significantly. To
- avoid silent failures, `nacl.c` has been removed, and replaced with
- `nacl.bindings` (with the new argument ordering). If you have code which
- calls these functions (e.g. `nacl.c.crypto_box_keypair()`), you must review
- the new docstrings and update your code/imports to match the new
- conventions.
+ * 1.0.1:
+
+ * Fix an issue with absolute paths that prevented the creation of wheels.
+
+ * 1.0:
+
+ * PyNaCl has been ported to use the new APIs available in cffi 1.0+.
+ Due to this change we no longer support PyPy releases older than 2.6.
+
+ * Python 3.2 support has been dropped.
+
+ * Functions to convert between Ed25519 and Curve25519 keys have been added.
+
+ * 0.3.0:
+
+ * The low-level API (`nacl.c.*`) has been changed to match the
+ upstream NaCl C/C++ conventions (as well as those of other NaCl bindings).
+ The order of arguments and return values has changed significantly. To
+ avoid silent failures, `nacl.c` has been removed, and replaced with
+ `nacl.bindings` (with the new argument ordering). If you have code which
+ calls these functions (e.g. `nacl.c.crypto_box_keypair()`), you must review
+ the new docstrings and update your code/imports to match the new
+ conventions.
Platform: UNKNOWN
Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -70,6 +103,6 @@ Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
diff --git a/README.rst b/README.rst
index 99c39b4..93642f7 100644
--- a/README.rst
+++ b/README.rst
@@ -15,23 +15,42 @@ PyNaCl is a Python binding to the `Networking and Cryptography library`_,
a crypto library with the stated goal of improving usability, security and
speed.
-.. _Networking and Cryptography library: http://nacl.cr.yp.to/
+.. _Networking and Cryptography library: https://nacl.cr.yp.to/
Installation
------------
-PyNaCl relies on libsodium_, a portable C library which can be compiled
-on a variety of systems. It may already be available from your package
-manager.
+
+Linux
+~~~~~
+
+PyNaCl relies on libsodium_, a portable C library. A copy is bundled
+with PyNaCl so to install you can run:
+
+.. code-block:: console
+
+ $ pip install pynacl
+
+If you'd prefer to use one provided by your distribution you can disable
+the bundled copy during install by running:
+
+.. code-block:: console
+
+ $ SODIUM_INSTALL=system pip install pynacl
+
.. _libsodium: https://github.com/jedisct1/libsodium
-Once libsodium is installed, PyNaCl can be installed by:
+Mac OS X & Windows
+~~~~~~~~~~~~~~~~~~
-.. code-block:: bash
+PyNaCl ships as a binary wheel on OS X and Windows so all dependencies
+are included. Make sure you have an up-to-date pip and run:
- $ python setup.py install
+.. code-block:: console
+
+ $ pip install pynacl
Features
@@ -40,17 +59,31 @@ Features
* Digital signatures
* Secret-key encryption
* Public-key encryption
-* HMAC (coming soon)
Changes
-------
-* 0.3.0: the low-level API (`nacl.c.*`) has been changed to match the
- upstream NaCl C/C++ conventions (as well as those of other NaCl bindings).
- The order of arguments and return values has changed significantly. To
- avoid silent failures, `nacl.c` has been removed, and replaced with
- `nacl.bindings` (with the new argument ordering). If you have code which
- calls these functions (e.g. `nacl.c.crypto_box_keypair()`), you must review
- the new docstrings and update your code/imports to match the new
- conventions.
+* 1.0.1:
+
+ * Fix an issue with absolute paths that prevented the creation of wheels.
+
+* 1.0:
+
+ * PyNaCl has been ported to use the new APIs available in cffi 1.0+.
+ Due to this change we no longer support PyPy releases older than 2.6.
+
+ * Python 3.2 support has been dropped.
+
+ * Functions to convert between Ed25519 and Curve25519 keys have been added.
+
+* 0.3.0:
+
+ * The low-level API (`nacl.c.*`) has been changed to match the
+ upstream NaCl C/C++ conventions (as well as those of other NaCl bindings).
+ The order of arguments and return values has changed significantly. To
+ avoid silent failures, `nacl.c` has been removed, and replaced with
+ `nacl.bindings` (with the new argument ordering). If you have code which
+ calls these functions (e.g. `nacl.c.crypto_box_keypair()`), you must review
+ the new docstrings and update your code/imports to match the new
+ conventions.
diff --git a/docs/secret.rst b/docs/secret.rst
index b11f37c..5aba739 100644
--- a/docs/secret.rst
+++ b/docs/secret.rst
@@ -134,5 +134,5 @@ Reference
Algorithm details
-----------------
-:Encryption: `Salsa20 steam cipher <https://en.wikipedia.org/wiki/Salsa20>`_
+:Encryption: `Salsa20 stream cipher <https://en.wikipedia.org/wiki/Salsa20>`_
:Authentication: `Poly1305 MAC <https://en.wikipedia.org/wiki/Poly1305-AES>`_
diff --git a/docs/signing.rst b/docs/signing.rst
index 97c2ab3..4db0fe1 100644
--- a/docs/signing.rst
+++ b/docs/signing.rst
@@ -46,7 +46,7 @@ Verifier's perspective (:class:`~nacl.signing.VerifyKey`)
verify_key = nacl.signing.VerifyKey(verify_key_hex, encoder=nacl.encoding.HexEncoder)
# Check the validity of a message's signature
- # Will raise nacl.signing.BadSignatureError if the signature check fails
+ # Will raise nacl.exceptions.BadSignatureError if the signature check fails
verify_key.verify(signed)
@@ -196,8 +196,8 @@ compromising security.
Algorithm
~~~~~~~~~
-* **Public Keys:** `Curve25519 high-speed elliptic curve cryptography <http://cr.yp.to/ecdh.html>`_
-* **Signatures:** `Ed25519 digital signature system <http://cr.yp.to/ecdh.html>`_
+* **Public Keys:** `Curve25519 high-speed elliptic curve cryptography <https://cr.yp.to/ecdh.html>`_
+* **Signatures:** `Ed25519 digital signature system <https://cr.yp.to/ecdh.html>`_
.. image:: _static/ed25519.png
diff --git a/setup.py b/setup.py
index 63aae1b..c652325 100644
--- a/setup.py
+++ b/setup.py
@@ -15,10 +15,12 @@
from __future__ import absolute_import, division, print_function
+import errno
import functools
import glob
import os
import os.path
+import platform
import subprocess
import sys
@@ -31,19 +33,35 @@ from setuptools import Distribution, setup
from setuptools.command.install import install
-SODIUM_MAJOR = 4
-SODIUM_MINOR = 5
+SODIUM_MAJOR = 7
+SODIUM_MINOR = 3
-CFFI_DEPENDENCY = "cffi>=0.8"
+requirements = ["six"]
+setup_requirements = []
+
+if platform.python_implementation() == "PyPy":
+ if sys.pypy_version_info < (2, 6):
+ raise RuntimeError(
+ "PyNaCl is not compatible with PyPy < 2.6. Please "
+ "upgrade PyPy to use this library."
+ )
+else:
+ requirements.append("cffi>=1.1.0")
+ setup_requirements.append("cffi>=1.1.0")
def here(*paths):
- return os.path.abspath(os.path.join(os.path.dirname(__file__), *paths))
+ return os.path.relpath(os.path.join(*paths))
+
+
+def abshere(*paths):
+ return os.path.abspath(here(*paths))
+
sodium = functools.partial(here, "src/libsodium/src/libsodium")
-sys.path.insert(0, here("src"))
+sys.path.insert(0, abshere("src"))
import nacl # flake8: noqa
@@ -66,38 +84,6 @@ def which(name, flags=os.X_OK): # Taken from twisted
return result
-def get_ext_modules():
- import nacl._lib
- return [nacl._lib.ffi.verifier.get_extension()]
-
-
-class CFFIBuild(build):
- """
- This class exists, instead of just providing ``ext_modules=[...]`` directly
- in ``setup()`` because importing cryptography requires we have several
- packages installed first.
-
- By doing the imports here we ensure that packages listed in
- ``setup_requires`` are already installed.
- """
-
- def finalize_options(self):
- self.distribution.ext_modules = get_ext_modules()
- build.finalize_options(self)
-
-
-class CFFIInstall(install):
- """
- As a consequence of CFFIBuild and it's late addition of ext_modules, we
- need the equivalent for the ``install`` command to install into platlib
- install-dir rather than purelib.
- """
-
- def finalize_options(self):
- self.distribution.ext_modules = get_ext_modules()
- install.finalize_options(self)
-
-
def use_system():
install_type = os.environ.get("SODIUM_INSTALL")
@@ -118,7 +104,7 @@ def use_system():
""")
try:
- system = ffi.dlopen("libsodium")
+ system = ffi.dlopen("sodium")
except OSError:
# We couldn't locate libsodium so we'll use the bundled one
return False
@@ -169,8 +155,9 @@ class build_clib(_build_clib):
# Ensure our temporary build directory exists
try:
os.makedirs(build_temp)
- except IOError:
- pass
+ except OSError as e:
+ if e.errno != errno.EEXIST:
+ raise
# Ensure all of our executanle files have their permission set
for filename in [
@@ -187,7 +174,7 @@ class build_clib(_build_clib):
os.chmod(here(filename), 0o755)
# Locate our configure script
- configure = here("src/libsodium/configure")
+ configure = abshere("src/libsodium/configure")
# Run ./configure
subprocess.check_call(
@@ -235,13 +222,8 @@ setup(
author=nacl.__author__,
author_email=nacl.__email__,
- setup_requires=[
- CFFI_DEPENDENCY
- ],
- install_requires=[
- CFFI_DEPENDENCY,
- "six",
- ],
+ setup_requires=setup_requirements,
+ install_requires=requirements,
extras_require={
"tests": ["pytest"],
},
@@ -250,16 +232,15 @@ setup(
package_dir={"": "src"},
packages=[
"nacl",
- "nacl._lib",
"nacl.bindings",
],
- package_data={"nacl._lib": ["*.h"]},
- ext_package="nacl._lib",
+ ext_package="nacl",
+ cffi_modules=[
+ "src/bindings/build.py:ffi",
+ ],
cmdclass={
- "build": CFFIBuild,
- "install": CFFIInstall,
"build_clib": build_clib,
"build_ext": build_ext,
},
@@ -273,8 +254,8 @@ setup(
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
+ "Programming Language :: Python :: 3.5",
]
)
diff --git a/src/PyNaCl.egg-info/PKG-INFO b/src/PyNaCl.egg-info/PKG-INFO
index 309f5f3..9020164 100644
--- a/src/PyNaCl.egg-info/PKG-INFO
+++ b/src/PyNaCl.egg-info/PKG-INFO
@@ -1,10 +1,10 @@
Metadata-Version: 1.1
Name: PyNaCl
-Version: 0.3.0
+Version: 1.0.1
Summary: Python binding to the Networking and Cryptography (NaCl) library
Home-page: https://github.com/pyca/pynacl/
-Author: Donald Stufft
-Author-email: donald at stufft.io
+Author: The PyNaCl developers
+Author-email: cryptography-dev at python.org
License: Apache License 2.0
Description: PyNaCl
======
@@ -23,23 +23,42 @@ Description: PyNaCl
a crypto library with the stated goal of improving usability, security and
speed.
- .. _Networking and Cryptography library: http://nacl.cr.yp.to/
+ .. _Networking and Cryptography library: https://nacl.cr.yp.to/
Installation
------------
- PyNaCl relies on libsodium_, a portable C library which can be compiled
- on a variety of systems. It may already be available from your package
- manager.
+
+ Linux
+ ~~~~~
+
+ PyNaCl relies on libsodium_, a portable C library. A copy is bundled
+ with PyNaCl so to install you can run:
+
+ .. code-block:: console
+
+ $ pip install pynacl
+
+ If you'd prefer to use one provided by your distribution you can disable
+ the bundled copy during install by running:
+
+ .. code-block:: console
+
+ $ SODIUM_INSTALL=system pip install pynacl
+
.. _libsodium: https://github.com/jedisct1/libsodium
- Once libsodium is installed, PyNaCl can be installed by:
+ Mac OS X & Windows
+ ~~~~~~~~~~~~~~~~~~
- .. code-block:: bash
+ PyNaCl ships as a binary wheel on OS X and Windows so all dependencies
+ are included. Make sure you have an up-to-date pip and run:
- $ python setup.py install
+ .. code-block:: console
+
+ $ pip install pynacl
Features
@@ -48,20 +67,34 @@ Description: PyNaCl
* Digital signatures
* Secret-key encryption
* Public-key encryption
- * HMAC (coming soon)
Changes
-------
- * 0.3.0: the low-level API (`nacl.c.*`) has been changed to match the
- upstream NaCl C/C++ conventions (as well as those of other NaCl bindings).
- The order of arguments and return values has changed significantly. To
- avoid silent failures, `nacl.c` has been removed, and replaced with
- `nacl.bindings` (with the new argument ordering). If you have code which
- calls these functions (e.g. `nacl.c.crypto_box_keypair()`), you must review
- the new docstrings and update your code/imports to match the new
- conventions.
+ * 1.0.1:
+
+ * Fix an issue with absolute paths that prevented the creation of wheels.
+
+ * 1.0:
+
+ * PyNaCl has been ported to use the new APIs available in cffi 1.0+.
+ Due to this change we no longer support PyPy releases older than 2.6.
+
+ * Python 3.2 support has been dropped.
+
+ * Functions to convert between Ed25519 and Curve25519 keys have been added.
+
+ * 0.3.0:
+
+ * The low-level API (`nacl.c.*`) has been changed to match the
+ upstream NaCl C/C++ conventions (as well as those of other NaCl bindings).
+ The order of arguments and return values has changed significantly. To
+ avoid silent failures, `nacl.c` has been removed, and replaced with
+ `nacl.bindings` (with the new argument ordering). If you have code which
+ calls these functions (e.g. `nacl.c.crypto_box_keypair()`), you must review
+ the new docstrings and update your code/imports to match the new
+ conventions.
Platform: UNKNOWN
Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -70,6 +103,6 @@ Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
diff --git a/src/PyNaCl.egg-info/SOURCES.txt b/src/PyNaCl.egg-info/SOURCES.txt
index f0e49b1..c3e0206 100644
--- a/src/PyNaCl.egg-info/SOURCES.txt
+++ b/src/PyNaCl.egg-info/SOURCES.txt
@@ -3,543 +3,6 @@ MANIFEST.in
README.rst
... 62836 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-nacl.git
More information about the Python-modules-commits
mailing list