swift/test/unit/common/middleware/crypto
Thomas Goirand 85d3658d62 Fix kms_keymaster under Python 3
Depending on how the key was stored in Barbican, it may come out of
Castellan as a native string, which would not be suitable on Python 3.
Now, check that the secret is a byte string, and if it isn't, encode as
UTF-8 (to match Barbican's internal encoding).

Change-Id: I6da047716c05e4f2a9e1e74ca19afb62e812d172
Closes-Bug: #1847755
2019-10-13 21:58:50 -07:00
..
__init__.py Enable object body and metadata encryption 2016-06-30 23:31:15 -07:00
crypto_helpers.py py3: port encryption 2018-11-20 01:30:04 -06:00
test_crypto_utils.py Increase some middleware test coverage 2019-06-05 06:19:04 +00:00
test_crypto.py Add encrypter and decrypter links to middleware.rst 2016-07-08 11:50:55 +01:00
test_decrypter.py py3: port encryption 2018-11-20 01:30:04 -06:00
test_encrypter.py py3: port encryption 2018-11-20 01:30:04 -06:00
test_encryption.py encryption: Stop being cutesy with os.path.join() 2019-02-08 01:40:29 +00:00
test_keymaster.py Fix decryption for broken objects 2019-02-12 20:11:22 +00:00
test_kmip_keymaster.py Increase some middleware test coverage 2019-06-05 06:19:04 +00:00
test_kms_keymaster.py Fix kms_keymaster under Python 3 2019-10-13 21:58:50 -07:00