aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-13 12:06:57 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-14 10:12:25 -0600
commit8802a5bae7138d10c289361e5204fb1ea72fc099 (patch)
tree75fa780a9209b960c4393a1b7b40c811fc3c9b53 /docs
parentb01622d15441068324af7ac68e1a1e26a4757704 (diff)
downloadcryptography-8802a5bae7138d10c289361e5204fb1ea72fc099.tar.gz
cryptography-8802a5bae7138d10c289361e5204fb1ea72fc099.tar.bz2
cryptography-8802a5bae7138d10c289361e5204fb1ea72fc099.zip
implement signature_hash_algorithm instead
Diffstat (limited to 'docs')
-rw-r--r--docs/spelling_wordlist.txt1
-rw-r--r--docs/x509.rst15
2 files changed, 9 insertions, 7 deletions
diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt
index fefd26b3..ddd37897 100644
--- a/docs/spelling_wordlist.txt
+++ b/docs/spelling_wordlist.txt
@@ -51,3 +51,4 @@ Ubuntu
unencrypted
unpadded
unpadding
+Verisign
diff --git a/docs/x509.rst b/docs/x509.rst
index 8043b367..193b8452 100644
--- a/docs/x509.rst
+++ b/docs/x509.rst
@@ -182,18 +182,19 @@ X.509 Certificate Object
The :class:`Name` of the subject.
- .. attribute:: signature_algorithm
+ .. attribute:: signature_hash_algorithm
- :type: :class:`ObjectIdentifier`
+ :type: :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`
- An :class:`ObjectIdentifier` instance corresponding to the signature
- algorithm used to sign the certificate. This is both the digest
- used as well as the asymmetric type.
+ A :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`
+ corresponding to the hash algorithm used within the certificate
+ signature.
.. doctest::
- >>> cert.signature_algorithm
- <ObjectIdentifier(oid=1.2.840.113549.1.1.11, name=sha256WithRSAEncryption)>
+ >>> from cryptography.hazmat.primitives import hashes
+ >>> isinstance(cert.signature_hash_algorithm, hashes.SHA256)
+ True
.. class:: Name