aboutsummaryrefslogtreecommitdiffstats
path: root/src/python
Commit message (Collapse)AuthorAgeFilesLines
* Fix Python testsJack Lloyd2017-11-161-1/+1
|
* Change http://botan.randombit.net to https URIsJack Lloyd2017-09-011-1/+1
| | | | | | Not a big deal since the site already uses HSTS, but whatever. [ci skip]
* Don't use len() to verify emptynessSimon Warta2017-05-041-1/+4
|
* Remove comment: FIXME without further descriptionSimon Warta2017-05-041-1/+1
|
* Work around name conflict of symbol "rng"Simon Warta2017-05-041-13/+14
|
* Add base exception type: BotanExceptionSimon Warta2017-05-041-22/+30
|
* Fix various pylint warningsSimon Warta2017-05-041-8/+10
|
* Avoid redefining build-in name "hash"Simon Warta2017-05-041-3/+3
| | | | | this breaks applications using a parameter labels, e.g. pubkey.fingerprint(hash='SHA-512')
* Silence invalid name warning for module "botan"Simon Warta2017-05-041-2/+2
|
* Silence pylint invalid class name warningsSimon Warta2017-05-041-12/+12
|
* Use comments to organize code sectionsSimon Warta2017-05-041-35/+40
|
* Remove trailing whitespaceSimon Warta2017-05-041-1/+1
|
* Break long linesSimon Warta2017-05-041-14/+29
|
* Expose BigInt API subset to C APIJack Lloyd2017-03-281-10/+5
| | | | Also adds RSA key constructors using BN
* Rename Python module to botan2Jack Lloyd2017-01-241-0/+0
| | | | | | | Makes it easier to support side by side installs. And for the programmer it is easier if `import botan2` can always be used to refer to a specific version. GH #847
* Fix some (not all) pylint warnings in botan.pyJack Lloyd2017-01-121-54/+52
|
* Fix pyflakes warnings in Python wrapper codeJack Lloyd2017-01-121-16/+21
|
* Update shared object naming for new versioning scheme.Jack Lloyd2017-01-061-2/+2
| | | | | | | | | | | | Cleans up so object naming since most of the time (across Unix) we follow the exact same naming scheme; just make it the default if only the so suffix is specified in the file. Also updates include header dir to be botan-${major} Changes behavior when shared lib not supported; instead of making the user explicitly try again with --disable-shared, just assume it and continue running.
* fix python 3 bindingsKai Michaelis2016-06-011-1/+1
|
* fix python bindingsKai Michaelis2016-06-011-4/+4
|
* Removed empty lineMouse2016-04-061-1/+0
|
* Fixed bcrypt() argument problem. Fixed buffer overread in bcrypt().Mouse2016-04-051-3/+13
|
* Remove tabRené Korthaus2016-02-201-1/+1
|
* Improvements in X.509 cert handling for python bindingsRené Korthaus2016-02-201-16/+69
| | | | | | | | Add implementation for ffi botan_x509_cert_get_public_key(). Add subject_dn() function to python x509_cert class. Have python x509_cert constructor take a buffer alternatively. Have python x509_cert functions time_starts() and time_expires() return a python timestamp.
* Added comments explaining when .decode() is needed on mce_decryptUri Blumenthal2015-10-231-2/+7
|
* Fix minor output problem.Mouse2015-10-231-8/+13
| | | | | | Added MCEIES plaintext and decrypted output. Added output length where it was missing. Changed "Public key bits" output to Base64 to match cert.toString()
* 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