Exemplo n.º 1
0
 def create_dsa_signature_ctx(self, private_key, algorithm):
     warnings.warn(
         "create_dsa_signature_ctx is deprecated and will be removed in "
         "a future version.",
         utils.DeprecatedIn05,
         stacklevel=2)
     dsa_cdata = self._dsa_cdata_from_private_key(private_key)
     key = _DSAPrivateKey(self, dsa_cdata)
     return _DSASignatureContext(self, key, algorithm)
Exemplo n.º 2
0
 def create_dsa_signature_ctx(self, private_key, algorithm):
     warnings.warn(
         "create_dsa_signature_ctx is deprecated and will be removed in "
         "a future version.",
         utils.DeprecatedIn05,
         stacklevel=2
     )
     dsa_cdata = self._dsa_cdata_from_private_key(private_key)
     key = _DSAPrivateKey(self, dsa_cdata)
     return _DSASignatureContext(self, key, algorithm)
Exemplo n.º 3
0
 def create_dsa_signature_ctx(self, private_key, algorithm):
     return _DSASignatureContext(self, private_key, algorithm)