@@ -287,15 +287,15 @@ def sign(self, data, key=None, passphrase=None, cert=None, reference_uri=None, k
287287 :param data: Data to sign
288288 :type data: String, file-like object, or XML ElementTree Element API compatible object
289289 :param key:
290- Key to be used for signing. When signing with a certificate or RSA/DSA/ECDSA key, this can be a string
291- containing a PEM-formatted key, or a :py:class:`cryptography.hazmat.primitives.interfaces.RSAPublicKey `,
292- :py:class:`cryptography.hazmat.primitives.interfaces.DSAPublicKey `, or
293- :py:class:`cryptography.hazmat.primitives.interfaces.EllipticCurvePublicKey ` object. When signing with a
290+ Key to be used for signing. When signing with a certificate or RSA/DSA/ECDSA key, this can be a string/bytes
291+ containing a PEM-formatted key, or a :py:class:`cryptography.hazmat.primitives.interfaces.RSAPrivateKey `,
292+ :py:class:`cryptography.hazmat.primitives.interfaces.DSAPrivateKey `, or
293+ :py:class:`cryptography.hazmat.primitives.interfaces.EllipticCurvePrivateKey ` object. When signing with a
294294 HMAC, this should be a string containing the shared secret.
295295 :type key:
296- string, :py:class:`cryptography.hazmat.primitives.interfaces.RSAPublicKey `,
297- :py:class:`cryptography.hazmat.primitives.interfaces.DSAPublicKey `, or
298- :py:class:`cryptography.hazmat.primitives.interfaces.EllipticCurvePublicKey ` object
296+ string, bytes, :py:class:`cryptography.hazmat.primitives.interfaces.RSAPrivateKey `,
297+ :py:class:`cryptography.hazmat.primitives.interfaces.DSAPrivateKey `, or
298+ :py:class:`cryptography.hazmat.primitives.interfaces.EllipticCurvePrivateKey ` object
299299 :param passphrase: Passphrase to use to decrypt the key, if any.
300300 :type passphrase: string
301301 :param cert:
0 commit comments