var/opt/nydus/ops/oscrypto/symmetric.py000064400000003460147205263400014357 0ustar00# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function from . import backend _backend = backend() if _backend == 'mac': from ._mac.symmetric import ( aes_cbc_no_padding_decrypt, aes_cbc_no_padding_encrypt, aes_cbc_pkcs7_decrypt, aes_cbc_pkcs7_encrypt, des_cbc_pkcs5_decrypt, des_cbc_pkcs5_encrypt, rc2_cbc_pkcs5_decrypt, rc2_cbc_pkcs5_encrypt, rc4_decrypt, rc4_encrypt, tripledes_cbc_pkcs5_decrypt, tripledes_cbc_pkcs5_encrypt, ) elif _backend == 'win' or _backend == 'winlegacy': from ._win.symmetric import ( aes_cbc_no_padding_decrypt, aes_cbc_no_padding_encrypt, aes_cbc_pkcs7_decrypt, aes_cbc_pkcs7_encrypt, des_cbc_pkcs5_decrypt, des_cbc_pkcs5_encrypt, rc2_cbc_pkcs5_decrypt, rc2_cbc_pkcs5_encrypt, rc4_decrypt, rc4_encrypt, tripledes_cbc_pkcs5_decrypt, tripledes_cbc_pkcs5_encrypt, ) else: from ._openssl.symmetric import ( aes_cbc_no_padding_decrypt, aes_cbc_no_padding_encrypt, aes_cbc_pkcs7_decrypt, aes_cbc_pkcs7_encrypt, des_cbc_pkcs5_decrypt, des_cbc_pkcs5_encrypt, rc2_cbc_pkcs5_decrypt, rc2_cbc_pkcs5_encrypt, rc4_decrypt, rc4_encrypt, tripledes_cbc_pkcs5_decrypt, tripledes_cbc_pkcs5_encrypt, ) __all__ = [ 'aes_cbc_no_padding_decrypt', 'aes_cbc_no_padding_encrypt', 'aes_cbc_pkcs7_decrypt', 'aes_cbc_pkcs7_encrypt', 'des_cbc_pkcs5_decrypt', 'des_cbc_pkcs5_encrypt', 'rc2_cbc_pkcs5_decrypt', 'rc2_cbc_pkcs5_encrypt', 'rc4_decrypt', 'rc4_encrypt', 'tripledes_cbc_pkcs5_decrypt', 'tripledes_cbc_pkcs5_encrypt', ]