Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pyca/cryptography
/ functions
Functions
3,887 in github.com/pyca/cryptography
⨍
Functions
3,887
◇
Types & classes
731
↳
Endpoints
1
↓ 234 callers
Function
_load_cert
(filename, loader: typing.Callable[..., T])
tests/x509/test_x509.py:78
↓ 230 callers
Method
public_key
Returns the public key
src/cryptography/x509/base.py:186
↓ 230 callers
Method
unhexlify
(String line)
docs/development/custom-vectors/rsa-oaep-sha2/VerifyRSAOAEPSHA2.java:142
↓ 186 callers
Method
sign
Signs the certificate using the CA's private key.
src/cryptography/x509/base.py:922
↓ 185 callers
Function
load_vectors_from_file
( filename, loader: typing.Callable[..., T], mode="r" )
tests/utils.py:42
↓ 94 callers
Method
verify
(self, signature: bytes)
src/cryptography/hazmat/primitives/cmac.py:54
↓ 92 callers
Method
public_bytes
(self, backend: typing.Any = None)
src/cryptography/x509/name.py:335
↓ 80 callers
Method
private_bytes
( self, encoding: serialization.Encoding, format: serialization.PrivateFormat,
src/cryptography/hazmat/backends/openssl/rsa.py:490
↓ 77 callers
Method
issuer_name
Sets the CA's distinguished name.
src/cryptography/x509/base.py:739
↓ 76 callers
Method
get_extension_for_class
( self, extclass: typing.Type[ExtensionTypeVar] )
src/cryptography/x509/extensions.py:128
↓ 74 callers
Method
serial_number
Returns certificate serial number
src/cryptography/x509/base.py:173
↓ 73 callers
Method
subject_name
Sets the requestor's distinguished name.
src/cryptography/x509/base.py:757
↓ 71 callers
Method
openssl_assert
( self, ok: bool, errors: typing.Optional[typing.List[rust_openssl.OpenSSLError]] = No
src/cryptography/hazmat/backends/openssl/backend.py:168
↓ 69 callers
Method
generate_private_key
Generates and returns a DHPrivateKey.
src/cryptography/hazmat/primitives/asymmetric/dh.py:148
↓ 66 callers
Method
generate
(self, counter: int)
src/cryptography/hazmat/primitives/twofactor/hotp.py:69
↓ 65 callers
Method
private_key
(self, backend: typing.Any = None)
src/cryptography/hazmat/primitives/asymmetric/dh.py:130
↓ 62 callers
Method
get_extension_for_oid
( self, oid: ObjectIdentifier )
src/cryptography/x509/extensions.py:119
↓ 60 callers
Function
_skip_curve_unsupported
(backend, curve)
tests/hazmat/primitives/test_ec.py:55
↓ 59 callers
Method
finalize
(self)
src/cryptography/hazmat/primitives/cmac.py:47
↓ 58 callers
Method
update
(&mut self, data: &[u8])
src/rust/cryptography-openssl/src/hmac.rs:39
↓ 56 callers
Method
add_extension
Adds an X.509 extension to the certificate.
src/cryptography/x509/base.py:900
↓ 52 callers
Method
not_valid_after
Not after time (represented as UTC datetime)
src/cryptography/x509/base.py:200
↓ 52 callers
Method
not_valid_before
Not before time (represented as UTC datetime)
src/cryptography/x509/base.py:193
↓ 51 callers
Method
encryptor
( self: Cipher[modes.ModeWithAuthenticationTag], )
src/cryptography/hazmat/primitives/ciphers/base.py:98
↓ 51 callers
Function
raises_unsupported_algorithm
(reason)
tests/utils.py:32
↓ 48 callers
Method
test
(self)
tests/conftest.py:63
↓ 47 callers
Method
as_bytes
(&self)
src/rust/src/buf.rs:14
↓ 47 callers
Method
clone
(&self)
src/rust/src/x509/crl.rs:469
↓ 43 callers
Method
generate_key
(cls)
src/cryptography/fernet.py:48
↓ 36 callers
Function
generate_encrypt_test
( param_loader, path, file_names, cipher_factory, mode_factory )
tests/hazmat/primitives/utils.py:47
↓ 36 callers
Method
private_numbers
(self)
src/cryptography/hazmat/backends/openssl/rsa.py:455
↓ 34 callers
Method
load_pem_private_key
( self, data: bytes, password: typing.Optional[bytes], unsafe_skip_rsa_key_val
src/cryptography/hazmat/backends/openssl/backend.py:741
↓ 33 callers
Function
load_pem_private_key
( data: bytes, password: typing.Optional[bytes], backend: typing.Any = None, *, unsafe_ski
src/cryptography/hazmat/primitives/serialization/base.py:16
↓ 32 callers
Method
from_private_bytes
(cls, data: bytes)
src/cryptography/hazmat/primitives/asymmetric/x448.py:68
↓ 31 callers
Function
_load_data
(filename, loader)
tests/x509/test_ocsp.py:24
↓ 31 callers
Method
decrypt
( self, token: typing.Union[bytes, str], ttl: typing.Optional[int] = None )
src/cryptography/fernet.py:83
↓ 30 callers
Function
_cert_and_issuer
()
tests/x509/test_ocsp.py:30
↓ 30 callers
Method
_consume_errors
(self)
src/cryptography/hazmat/backends/openssl/backend.py:345
↓ 30 callers
Method
from_public_bytes
(cls, data: bytes)
src/cryptography/hazmat/primitives/asymmetric/x448.py:16
↓ 30 callers
Method
new
(tag: asn1::Tag, value: &'a [u8])
src/rust/cryptography-x509/src/common.rs:133
↓ 29 callers
Method
decryptor
( self: Cipher[modes.ModeWithAuthenticationTag], )
src/cryptography/hazmat/primitives/ciphers/base.py:123
↓ 27 callers
Function
load_ssh_public_key
( data: bytes, backend: typing.Any = None )
src/cryptography/hazmat/primitives/serialization/ssh.py:1085
↓ 26 callers
Method
unwrap_read
(&self)
src/rust/cryptography-x509/src/common.rs:190
↓ 25 callers
Function
_load_cert_key
()
tests/hazmat/primitives/test_pkcs7.py:149
↓ 25 callers
Method
add_signer
( self, certificate: x509.Certificate, private_key: PKCS7PrivateKeyTypes, hash
src/cryptography/hazmat/primitives/serialization/pkcs7.py:85
↓ 25 callers
Method
last_update
Returns the date of last update for this CRL.
src/cryptography/x509/base.py:411
↓ 25 callers
Method
next_update
The time when newer information will be available
src/cryptography/x509/ocsp.py:351
↓ 25 callers
Method
update
(&mut self, data: CffiBuf<'_>)
src/rust/src/backend/hashes.rs:95
↓ 24 callers
Method
extract
(pyobj: &'a pyo3::PyAny)
src/rust/src/buf.rs:20
↓ 24 callers
Method
finalize
( &mut self, py: pyo3::Python<'p>, )
src/rust/src/backend/hashes.rs:100
↓ 24 callers
Method
len
(&self)
src/rust/src/x509/crl.rs:85
↓ 24 callers
Method
set_data
(self, data: bytes)
src/cryptography/hazmat/primitives/serialization/pkcs7.py:78
↓ 23 callers
Method
build
(self)
src/cryptography/x509/ocsp.py:484
↓ 22 callers
Method
exchange
Given peer's DHPublicKey, carry out the key exchange and return shared key as bytes.
src/cryptography/hazmat/primitives/asymmetric/dh.py:236
↓ 22 callers
Method
parameters
The DHParameters object associated with this public key.
src/cryptography/hazmat/primitives/asymmetric/dh.py:183
↓ 20 callers
Method
add_response
( self, cert: x509.Certificate, issuer: x509.Certificate, algorithm: hashes.Ha
src/cryptography/x509/ocsp.py:506
↓ 19 callers
Function
_generate_root
(private_key=None, algorithm=hashes.SHA256())
tests/x509/test_ocsp.py:42
↓ 19 callers
Function
_load_all_params
(path, file_names, param_loader)
tests/hazmat/primitives/utils.py:38
↓ 19 callers
Method
requires_successful_response
(&self)
src/rust/src/x509/ocsp_resp.rs:78
↓ 19 callers
Method
responder_id
( self, encoding: OCSPResponderEncoding, responder_cert: x509.Certificate )
src/cryptography/x509/ocsp.py:537
↓ 18 callers
Method
get_values_for_type
( self, type: typing.Union[ typing.Type[DNSName], typing.Type[UniformR
src/cryptography/x509/extensions.py:1441
↓ 18 callers
Method
public_numbers
(self)
src/cryptography/hazmat/backends/openssl/rsa.py:552
↓ 18 callers
Method
sign
( self, private_key: CertificateIssuerPrivateKeyTypes, algorithm: typing.Optional[hash
src/cryptography/x509/ocsp.py:589
↓ 17 callers
Function
generate_hash_test
(param_loader, path, file_names, hash_cls)
tests/hazmat/primitives/utils.py:183
↓ 17 callers
Method
revocation_date
Returns the date of when this certificate was revoked.
src/cryptography/x509/base.py:315
↓ 17 callers
Method
update
(self, data: bytes)
src/cryptography/hazmat/primitives/cmac.py:40
↓ 16 callers
Method
encrypt
(self, data: bytes)
src/cryptography/fernet.py:51
↓ 16 callers
Function
load_ssh_public_identity
( data: bytes, )
src/cryptography/hazmat/primitives/serialization/ssh.py:1049
↓ 15 callers
Function
_load_ca
(backend)
tests/hazmat/primitives/test_pkcs12.py:292
↓ 15 callers
Function
_make_sequence_methods
(field_name: str)
src/cryptography/x509/extensions.py:74
↓ 15 callers
Method
unpadder
(self)
src/cryptography/hazmat/primitives/padding.py:116
↓ 15 callers
Method
verify_directly_issued_by
This method verifies that certificate issuer name matches the issuer subject name and that the certificate is signed by the i
src/cryptography/x509/base.py:293
↓ 14 callers
Function
load_der_private_key
( data: bytes, password: typing.Optional[bytes], backend: typing.Any = None, *, unsafe_ski
src/cryptography/hazmat/primitives/serialization/base.py:46
↓ 14 callers
Function
load_key_and_certificates
( data: bytes, password: typing.Optional[bytes], backend: typing.Any = None, )
src/cryptography/hazmat/primitives/serialization/pkcs12.py:146
↓ 14 callers
Function
oid_to_py_oid
( py: pyo3::Python<'p>, oid: &asn1::ObjectIdentifier, )
src/rust/src/asn1.rs:22
↓ 14 callers
Method
type
(self)
src/cryptography/hazmat/primitives/serialization/ssh.py:871
↓ 14 callers
Method
valid_after
(self)
src/cryptography/hazmat/primitives/serialization/ssh.py:887
↓ 14 callers
Method
valid_before
(self)
src/cryptography/hazmat/primitives/serialization/ssh.py:883
↓ 13 callers
Function
_load_cert
(backend, path)
tests/hazmat/primitives/test_pkcs12.py:282
↓ 13 callers
Function
load_ssh_private_key
Load private key from OpenSSH custom encoding.
src/cryptography/hazmat/primitives/serialization/ssh.py:616
↓ 13 callers
Method
padder
(self)
src/cryptography/hazmat/primitives/padding.py:113
↓ 13 callers
Function
serialize_key_and_certificates
( name: typing.Optional[bytes], key: typing.Optional[PKCS12PrivateKeyTypes], cert: typing.Optional
src/cryptography/hazmat/primitives/serialization/pkcs12.py:176
↓ 12 callers
Function
_pkcs7_verify
(encoding, sig, msg, certs, options, backend)
tests/hazmat/primitives/test_pkcs7.py:96
↓ 12 callers
Function
_verify_key_size
(algorithm: CipherAlgorithm, key: bytes)
src/cryptography/hazmat/primitives/ciphers/algorithms.py:14
↓ 12 callers
Method
derive
(self, key_material: bytes)
src/cryptography/hazmat/primitives/kdf/hkdf.py:40
↓ 12 callers
Method
rsa_padding_supported
(self, padding: AsymmetricPadding)
src/cryptography/hazmat/backends/openssl/backend.py:661
↓ 12 callers
Method
valid_for_all_principals
(self)
src/cryptography/hazmat/primitives/serialization/ssh.py:1285
↓ 11 callers
Function
_generate_ca_and_leaf
( issuer_private_key: types.CertificateIssuerPrivateKeyTypes, subject_private_key: types.CertificateIs
tests/x509/test_x509.py:86
↓ 11 callers
Method
encrypt
( self, nonce: bytes, data: bytes, associated_data: typing.Optional[bytes],
src/cryptography/hazmat/primitives/ciphers/aead.py:122
↓ 11 callers
Method
get_attributes_for_oid
( self, oid: ObjectIdentifier )
src/cryptography/x509/name.py:326
↓ 11 callers
Method
update_into
Processes the provided bytes and writes the resulting data into the provided buffer. Returns the number of bytes written.
src/cryptography/hazmat/primitives/ciphers/base.py:33
↓ 10 callers
Method
_bytes_to_bio
Return a _MemoryBIO namedtuple of (BIO, char*). The char* is the storage for the BIO and it must stay alive until the BIO is
src/cryptography/hazmat/backends/openssl/backend.py:472
↓ 10 callers
Method
add_certificate
( self, cert: x509.Certificate, issuer: x509.Certificate, algorithm: hashes.Ha
src/cryptography/x509/ocsp.py:422
↓ 10 callers
Method
as_datetime
(&self)
src/rust/cryptography-x509/src/common.rs:167
↓ 10 callers
Function
assert_no_memory_leaks
(s, argv=[])
tests/hazmat/backends/test_openssl_memleak.py:164
↓ 10 callers
Method
authenticate_additional_data
(self, data: bytes)
src/cryptography/hazmat/backends/openssl/ciphers.py:268
↓ 10 callers
Function
datetime_to_py
( py: pyo3::Python<'p>, dt: &asn1::DateTime, )
src/rust/src/x509/common.rs:516
↓ 10 callers
Method
derive
(self, key_material: bytes)
src/cryptography/hazmat/primitives/kdf/kbkdf.py:280
↓ 10 callers
Method
from_encoded_point
( cls, curve: EllipticCurve, data: bytes )
src/cryptography/hazmat/primitives/asymmetric/ec.py:169
↓ 10 callers
Method
load_der_private_key
( self, data: bytes, password: typing.Optional[bytes], unsafe_skip_rsa_key_val
src/cryptography/hazmat/backends/openssl/backend.py:799
next →
1–100 of 3,887, ranked by callers