Beispiel #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)
Beispiel #2
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)
Beispiel #3
0
 def create_dsa_verification_ctx(self, public_key, signature,
                                 algorithm):
     return _DSAVerificationContext(self, public_key, signature,
                                    algorithm)