cryptography.exceptions.UnsupportedAlgorithm: cipher AES in CTR mode is not supported by this backend
When packaging the bundles with pyinstaller, symmetric encryption with soledad fails with the following error:
2016-03-09 10:38:50-0400 [HTTP11ClientProtocol (TLSMemoryBIOProtocol),client] Unhandled Error Traceback (most recent call last): File "leap/bitmask/core/mail_services.py", line 175, in hook_on_bonafide_auth File "leap/bonafide/config.py", line 219, in callWhenReady File "site-packages/twisted/internet/defer.py", line 317, in addCallback File "site-packages/twisted/internet/defer.py", line 306, in addCallbacks --- --- File "site-packages/twisted/internet/defer.py", line 588, in _runCallbacks File "leap/bonafide/config.py", line 219, in File "leap/bitmask/core/mail_services.py", line 192, in _hook_on_bonafide_auth File "leap/bitmask/core/mail_services.py", line 76, in add_instance File "leap/bitmask/core/mail_services.py", line 107, in _create_soledad_instance File "leap/soledad/client/api.py", line 211, in __init__ File "leap/soledad/client/api.py", line 259, in _init_secrets File "leap/soledad/client/secrets.py", line 217, in bootstrap File "leap/soledad/client/secrets.py", line 323, in _get_or_gen_crypto_secrets File "leap/soledad/client/secrets.py", line 601, in _gen_secret File "leap/soledad/client/secrets.py", line 612, in _store_secrets File "leap/soledad/client/secrets.py", line 386, in _export_recovery_document File "leap/soledad/client/secrets.py", line 547, in _encrypt_storage_secret File "leap/soledad/client/crypto.py", line 62, in encrypt_sym File "site-packages/cryptography/hazmat/primitives/ciphers/base.py", line 104, in encryptor File "site-packages/cryptography/hazmat/backends/multibackend.py", line 53, in create_symmetric_encryption_ctx cryptography.exceptions.UnsupportedAlgorithm: cipher AES in CTR mode is not supported by this backend.
I saw this error on the alpha bundles for 0.9.2 on osx too, but this time the error was triggered in linux, so it looks like the frozen binaries interfere in some way with the normal operation of cryptography backends.
(from redmine: created on 2016-03-09, closed on 2016-03-28)