Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pyca/cryptography
/ SHA1
Class
SHA1
src/cryptography/hazmat/primitives/hashes.py:101–104 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
99
100
101
class
SHA1(HashAlgorithm):
102
name =
"sha1"
103
digest_size = 20
104
block_size = 64
105
106
107
class
SHA512_224(HashAlgorithm):
# noqa: N801
Callers
13
test_unsupported_type_for_methods
Method · 0.90
test_duplicate_hmac_hash
Method · 0.90
test_invalid_key_length
Method · 0.90
test_unenforced_invalid_kwy_length
Method · 0.90
test_invalid_hotp_length
Method · 0.90
test_truncate
Method · 0.90
test_generate
Method · 0.90
test_verify
Method · 0.90
test_invalid_verify
Method · 0.90
test_length_not_int
Method · 0.90
test_get_provisioning_uri
Method · 0.90
test_buffer_protocol
Method · 0.90
Calls
no outgoing calls
Tested by
13
test_unsupported_type_for_methods
Method · 0.72
test_duplicate_hmac_hash
Method · 0.72
test_invalid_key_length
Method · 0.72
test_unenforced_invalid_kwy_length
Method · 0.72
test_invalid_hotp_length
Method · 0.72
test_truncate
Method · 0.72
test_generate
Method · 0.72
test_verify
Method · 0.72
test_invalid_verify
Method · 0.72
test_length_not_int
Method · 0.72
test_get_provisioning_uri
Method · 0.72
test_buffer_protocol
Method · 0.72