commit | ae85b831d47561d144a261a341f563b53bc5c2fb | [log] [tgz] |
---|---|---|
author | Volodymyr Babchuk <volodymyr_babchuk@epam.com> | Tue Oct 13 14:19:45 2020 +0300 |
committer | Jérôme Forissier <jerome@forissier.org> | Wed Oct 14 10:38:52 2020 +0200 |
tree | 2f077f56c53cc2ee8665250b24bfa852e4ea912d | |
parent | 0ab3b1fec4151efcb7aa2b3af279934d6376648a [diff] |
scripts: support both pycryptodome and pycryptodomex Current actual Python library for cryptography is being distributed in two flavors: pycroptodome and pycroptodomex. They are basically the same library, but with different import names: - pycryptodome provides 'Crypto' module and indented to directly replace old pycrypto library - pycryptodomex provides 'Cryptodome' module and is intended for old distributions, where pycrypto is still present Most of the modern Linux distributions provide both of the libraries, so there is no difference which one is to use. But some of them (like Yocto/Poky) provide only one. This patches makes scripts agnostic to a crypto library flavor being used by trying to import Cryptodome first and then Crypto if first import fails. Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com> Reviewed-by: Jerome Forissier <jerome@forissier.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers