aboutsummaryrefslogtreecommitdiffstats
path: root/src/python
Commit message (Collapse)AuthorAgeFilesLines
* Fix warning in new pylintJack Lloyd2018-03-171-9/+9
| | | | | It doesn't like slicing using a ctypes integer as index: Slice index is not an int, None, or instance with __index__
* Fix incorrect return value checkJack Lloyd2018-03-151-1/+1
|
* In Python module support loading via libbotan-2.so.X sonameJack Lloyd2018-03-151-7/+22
| | | | | | Needed for distros that ship the main library symlink in the dev package. GH #1497
* Split Python tests out of botan2.pyJack Lloyd2018-03-101-255/+3
| | | | No reason to ship these to the end user
* Latest pylint doesn't like these assertsJack Lloyd2017-12-171-2/+2
|
* 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.