diff options
author | Jack Lloyd <[email protected]> | 2020-11-06 09:53:39 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-11-06 09:53:39 -0500 |
commit | 7c27982e27b953682554de3c4b22843e0e7461e7 (patch) | |
tree | 74480b4685262e52fda467c64cedf9d2031b0c6e /src/python/botan2.py | |
parent | 332c2c088465f3e0e5fe498ba08dcc31a3e9cbd8 (diff) | |
parent | 76c1b92f320cee8a13c2071e3325d10bb1d7190d (diff) |
Merge GH #2434 Remove deprecated algorithms
Diffstat (limited to 'src/python/botan2.py')
-rwxr-xr-x | src/python/botan2.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/python/botan2.py b/src/python/botan2.py index 358d3bc59..78bc27934 100755 --- a/src/python/botan2.py +++ b/src/python/botan2.py @@ -1238,35 +1238,6 @@ class PKKeyAgreement(object): other, len(other), salt, len(salt))) -# -# MCEIES encryption -# Must be used with McEliece keys -# -def mceies_encrypt(mce, rng_obj, aead, pt, ad): - return _call_fn_returning_vec(len(pt) + 1024, lambda b, bl: - _DLL.botan_mceies_encrypt(mce.handle_(), - rng_obj.handle_(), - _ctype_str(aead), - _ctype_bits(pt), - len(pt), - _ctype_bits(ad), - len(ad), - b, bl)) - -def mceies_decrypt(mce, aead, ct, ad): - - #msg = cast(msg, c_char_p) - #ll = c_size_t(ll) - - return _call_fn_returning_vec(len(ct), lambda b, bl: - _DLL.botan_mceies_decrypt(mce.handle_(), - _ctype_str(aead), - _ctype_bits(ct), - len(ct), - _ctype_bits(ad), - len(ad), - b, bl)) - def _load_buf_or_file(filename, buf, file_fn, buf_fn): if filename is None and buf is None: |