aboutsummaryrefslogtreecommitdiffstats
path: root/src/python
Commit message (Collapse)AuthorAgeFilesLines
* Add workaround for Python 3.2/3.3 behavior in binascii. GH #305Jack Lloyd2015-10-221-1/+1
|
* Fix a bug in botan.py found by PyPy's ctypesJack Lloyd2015-10-221-3/+12
| | | | | | | | Add toplevel note explaining what is going on with this module. Print the interpreter version at startup [ci skip]
* Reverted version comparison relaxation, per Jack Lloyd's comment.Uri Blumenthal2015-10-211-1/+1
|
* Merge branch 'master' of https://github.com/randombit/botanUri Blumenthal2015-10-201-293/+262
|\
| * Fix botan.py for Python3Jack Lloyd2015-10-201-245/+255
| | | | | | | | | | | | | | | | | | Remove any need for callers to do version checks or encode values specially to handle Python2 vs Python3 ctypes differences. API users shouldn't have to care about that - encapsulate the differences in a few functions for handling the conversions. Add botan_cipher_query_keylen to ffi
* | Made most of botan.py run under Python3.Uri Blumenthal2015-10-201-60/+101
|/ | | | | Components that rely on the new Lambda-functions, do not run under Python3 - so they are blocked if Python3 is detected.
* Add McEliece keygen and MCEIES to C89 API. Plus random fiddlingJack Lloyd2015-10-011-24/+60
|
* Export X.509 certificates to ffi and pythonJack Lloyd2015-10-011-41/+129
| | | | Missing path validation, probably other things
* Changed tabs to 4 spacesMouse2015-08-141-5/+5
|
* Restored Darwin compatibilityUri Blumenthal2015-08-141-1/+4
|
* Ported python demo script to python-3Uri Blumenthal2015-08-141-61/+129
|
* Fixing platform independence that previous patch brokeMouse2015-08-121-1/+1
|
* Made output prettier and more understandableUri Blumenthal2015-08-111-31/+65
|
* Fix Python MAC wrapper, add an example/testlloyd2015-05-301-2/+12
|
* Fix Python cipher update_granularity() and default_nonce_length()lloyd2015-03-091-4/+5
| | | | which were completely broken. Pointed out by Uri B on mailing list.
* Fix decrypt in FFI/Python. Github issue 53lloyd2015-03-011-5/+16
|
* FFI header cleanup, small Python additionslloyd2015-02-241-3/+19
|
* Python cleanupslloyd2015-02-191-12/+17
|
* Python: docs, key agreement, fix bcrypt trailing null byte.lloyd2015-02-161-23/+78
| | | | Initial very incomplete pass at error return value sanity.
* Add new module `ffi` which provides a plain C interface, plus a newlloyd2015-02-167-802/+517
| | | | | | | | | | | | ctypes Python wrapper that uses it. The API is intentionally designed to have a very simple ABI (extern "C", all structs are opaque, no memory ownership passing the FFI boundary, limited set of simple types as args) so the ctypes wrapper is quite simple. Currently ffi provides ciphers, hashes, MACs, RNGs, PBKDF, KDF, bcrypt, and most public key operations. Remove the old boost.python wrapper and all the build code for it.
* Remove algo factory, engines, global RNG, global state, etc.lloyd2015-02-042-7/+0
| | | | | | | | | | | | | | | Convert all uses of Algorithm_Factory and the engines to using Algo_Registry The shared pool of entropy sources remains but is moved to EntropySource. With that and few remaining initializations (default OIDs and aliases) moved elsewhere, the global state is empty and init and shutdown are no-ops. Remove almost all of the headers and code for handling the global state, except LibraryInitializer which remains as a compatability stub. Update seeding for blinding so only one hacky almost-global RNG instance needs to be setup instead of across all pubkey uses (it uses either the system RNG or an AutoSeeded_RNG if the system RNG is not available).
* Ensure all files have copyright and license info.lloyd2015-01-105-4/+6
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Move python to src, add to main makefilelloyd2014-01-076-0/+807