コード例 #1
0
 def create_dsa_verification_ctx(self, public_key, signature, algorithm):
     warnings.warn(
         "create_dsa_verification_ctx is deprecated and will be removed in "
         "a future version.",
         utils.DeprecatedIn05,
         stacklevel=2)
     dsa_cdata = self._dsa_cdata_from_public_key(public_key)
     key = _DSAPublicKey(self, dsa_cdata)
     return _DSAVerificationContext(self, key, signature, algorithm)
コード例 #2
0
ファイル: backend.py プロジェクト: elbow-jason/cryptography
 def create_dsa_verification_ctx(self, public_key, signature,
                                 algorithm):
     warnings.warn(
         "create_dsa_verification_ctx is deprecated and will be removed in "
         "a future version.",
         utils.DeprecatedIn05,
         stacklevel=2
     )
     dsa_cdata = self._dsa_cdata_from_public_key(public_key)
     key = _DSAPublicKey(self, dsa_cdata)
     return _DSAVerificationContext(self, key, signature, algorithm)
コード例 #3
0
ファイル: backend.py プロジェクト: kennwhite/cryptography
 def create_dsa_verification_ctx(self, public_key, signature,
                                 algorithm):
     return _DSAVerificationContext(self, public_key, signature,
                                    algorithm)