@@ -248,7 +248,7 @@ Loading Certificate Revocation Lists
248
248
>>> from cryptography import x509
249
249
>>> from cryptography.hazmat.primitives import hashes
250
250
>>> crl = x509.load_pem_x509_crl(pem_crl_data)
251
- >>> isinstance ( crl.signature_hash_algorithm, hashes.SHA256 )
251
+ >>> crl.signature_hash_algorithm == hashes.SHA256( )
252
252
True
253
253
254
254
.. function :: load_der_x509_crl(data)
@@ -287,7 +287,7 @@ Loading Certificate Signing Requests
287
287
>>> from cryptography import x509
288
288
>>> from cryptography.hazmat.primitives import hashes
289
289
>>> csr = x509.load_pem_x509_csr(pem_req_data)
290
- >>> isinstance ( csr.signature_hash_algorithm, hashes.SHA256 )
290
+ >>> csr.signature_hash_algorithm == hashes.SHA256( )
291
291
True
292
292
293
293
.. function :: load_der_x509_csr(data)
@@ -477,7 +477,7 @@ X.509 Certificate Object
477
477
.. doctest ::
478
478
479
479
>>> from cryptography.hazmat.primitives import hashes
480
- >>> isinstance ( cert.signature_hash_algorithm, hashes.SHA256 )
480
+ >>> cert.signature_hash_algorithm == hashes.SHA256( )
481
481
True
482
482
483
483
.. attribute :: signature_algorithm_oid
@@ -716,7 +716,7 @@ X.509 CRL (Certificate Revocation List) Object
716
716
.. doctest ::
717
717
718
718
>>> from cryptography.hazmat.primitives import hashes
719
- >>> isinstance ( crl.signature_hash_algorithm, hashes.SHA256 )
719
+ >>> crl.signature_hash_algorithm == hashes.SHA256( )
720
720
True
721
721
722
722
.. attribute :: signature_algorithm_oid
@@ -1119,7 +1119,7 @@ X.509 CSR (Certificate Signing Request) Object
1119
1119
.. doctest ::
1120
1120
1121
1121
>>> from cryptography.hazmat.primitives import hashes
1122
- >>> isinstance ( csr.signature_hash_algorithm, hashes.SHA256 )
1122
+ >>> csr.signature_hash_algorithm == hashes.SHA256( )
1123
1123
True
1124
1124
1125
1125
.. attribute :: signature_algorithm_oid
0 commit comments