当前位置: 首页>>代码示例>>Python>>正文


Python _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM属性代码示例

本文整理汇总了Python中cryptography.exceptions._Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM属性的典型用法代码示例。如果您正苦于以下问题:Python _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM属性的具体用法?Python _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM怎么用?Python _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在cryptography.exceptions._Reasons的用法示例。


在下文中一共展示了_Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM属性的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: generate_rsa_private_key

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def generate_rsa_private_key(self, public_exponent, key_size):
        for b in self._filtered_backends(RSABackend):
            return b.generate_rsa_private_key(public_exponent, key_size)
        raise UnsupportedAlgorithm("RSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:7,代码来源:multibackend.py

示例2: generate_rsa_parameters_supported

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def generate_rsa_parameters_supported(self, public_exponent, key_size):
        for b in self._filtered_backends(RSABackend):
            return b.generate_rsa_parameters_supported(
                public_exponent, key_size
            )
        raise UnsupportedAlgorithm("RSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:9,代码来源:multibackend.py

示例3: rsa_padding_supported

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def rsa_padding_supported(self, padding):
        for b in self._filtered_backends(RSABackend):
            return b.rsa_padding_supported(padding)
        raise UnsupportedAlgorithm("RSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:7,代码来源:multibackend.py

示例4: load_rsa_private_numbers

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def load_rsa_private_numbers(self, numbers):
        for b in self._filtered_backends(RSABackend):
            return b.load_rsa_private_numbers(numbers)

        raise UnsupportedAlgorithm("RSA is not supported by the backend",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:8,代码来源:multibackend.py

示例5: generate_dsa_parameters

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def generate_dsa_parameters(self, key_size):
        for b in self._filtered_backends(DSABackend):
            return b.generate_dsa_parameters(key_size)
        raise UnsupportedAlgorithm("DSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:7,代码来源:multibackend.py

示例6: generate_dsa_private_key

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def generate_dsa_private_key(self, parameters):
        for b in self._filtered_backends(DSABackend):
            return b.generate_dsa_private_key(parameters)
        raise UnsupportedAlgorithm("DSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:7,代码来源:multibackend.py

示例7: generate_dsa_private_key_and_parameters

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def generate_dsa_private_key_and_parameters(self, key_size):
        for b in self._filtered_backends(DSABackend):
            return b.generate_dsa_private_key_and_parameters(key_size)
        raise UnsupportedAlgorithm("DSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:7,代码来源:multibackend.py

示例8: dsa_hash_supported

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def dsa_hash_supported(self, algorithm):
        for b in self._filtered_backends(DSABackend):
            return b.dsa_hash_supported(algorithm)
        raise UnsupportedAlgorithm("DSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:7,代码来源:multibackend.py

示例9: dsa_parameters_supported

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def dsa_parameters_supported(self, p, q, g):
        for b in self._filtered_backends(DSABackend):
            return b.dsa_parameters_supported(p, q, g)
        raise UnsupportedAlgorithm("DSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:7,代码来源:multibackend.py

示例10: load_dsa_private_numbers

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def load_dsa_private_numbers(self, numbers):
        for b in self._filtered_backends(DSABackend):
            return b.load_dsa_private_numbers(numbers)
        raise UnsupportedAlgorithm("DSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:7,代码来源:multibackend.py

示例11: load_dsa_parameter_numbers

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def load_dsa_parameter_numbers(self, numbers):
        for b in self._filtered_backends(DSABackend):
            return b.load_dsa_parameter_numbers(numbers)
        raise UnsupportedAlgorithm("DSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:7,代码来源:multibackend.py

示例12: load_rsa_public_numbers

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def load_rsa_public_numbers(self, numbers):
        for b in self._filtered_backends(RSABackend):
            return b.load_rsa_public_numbers(numbers)

        raise UnsupportedAlgorithm("RSA is not supported by the backend",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:8,代码来源:multibackend.py

示例13: load_dsa_public_numbers

# 需要导入模块: from cryptography.exceptions import _Reasons [as 别名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_PUBLIC_KEY_ALGORITHM [as 别名]
def load_dsa_public_numbers(self, numbers):
        for b in self._filtered_backends(DSABackend):
            return b.load_dsa_public_numbers(numbers)
        raise UnsupportedAlgorithm("DSA is not supported by the backend.",
                                   _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM) 
开发者ID:DirceuSilvaLabs,项目名称:noc-orchestrator,代码行数:7,代码来源:multibackend.py


注:本文中的cryptography.exceptions._Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。