Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/RSA
/ functions
Functions
285 in github.com/RustCrypto/RSA
⨍
Functions
285
◇
Types & classes
32
Function
decode_rsa2048_priv_der
()
tests/pkcs1.rs:48
Function
decode_rsa2048_priv_der
()
tests/pkcs8.rs:30
Function
decode_rsa2048_priv_pem
()
tests/pkcs1.rs:123
Function
decode_rsa2048_priv_pem
()
tests/pkcs8.rs:79
Function
decode_rsa2048_pub_der
()
tests/pkcs1.rs:74
Function
decode_rsa2048_pub_der
()
tests/pkcs8.rs:44
Function
decode_rsa2048_pub_pem
()
tests/pkcs1.rs:151
Function
decode_rsa2048_pub_pem
()
tests/pkcs8.rs:94
Function
decode_rsa4096_priv_der
()
tests/pkcs1.rs:61
Function
decode_rsa4096_priv_pem
()
tests/pkcs1.rs:137
Function
decode_rsa4096_pub_der
()
tests/pkcs1.rs:84
Function
decode_rsa4096_pub_pem
()
tests/pkcs1.rs:162
Method
decrypt
(&self, ciphertext: &[u8])
src/pkcs1v15/decrypting_key.rs:27
Method
decrypt
(&self, ciphertext: &[u8])
src/oaep/decrypting_key.rs:62
Function
decrypt_digest
( rng: Option<&mut R>, priv_key: &RsaPrivateKey, ciphertext: &[u8], label: Option<String>, )
src/oaep.rs:268
Method
decrypt_with_rng
( &self, rng: &mut R, ciphertext: &[u8], )
src/pkcs1v15/decrypting_key.rs:33
Function
do_test_encrypt_decrypt_oaep
( prk: &RsaPrivateKey, )
src/oaep.rs:384
Function
do_test_encrypt_decrypt_oaep_traits
(prk: &RsaPrivateKey)
src/oaep.rs:519
Function
do_test_oaep_with_different_hashes
( prk: &RsaPrivateKey, )
src/oaep.rs:429
Function
do_test_oaep_with_different_hashes_traits
( prk: &RsaPrivateKey, )
src/oaep.rs:523
Method
drop
(&mut self)
src/key.rs:77
Method
drop
(&mut self)
src/traits/keys.rs:62
Function
emsa_pss_encode_digest
( m_hash: &[u8], em_bits: usize, salt: &[u8], )
src/algorithms/pss.rs:92
Function
emsa_pss_verify_digest
( m_hash: &[u8], em: &mut [u8], s_len: usize, key_bits: usize, )
src/algorithms/pss.rs:281
Function
encode_rsa2048_priv_der
()
tests/pkcs1.rs:94
Function
encode_rsa2048_priv_der
()
tests/pkcs8.rs:55
Function
encode_rsa2048_priv_pem
()
tests/pkcs1.rs:173
Function
encode_rsa2048_priv_pem
()
tests/pkcs8.rs:106
Function
encode_rsa2048_pub_der
()
tests/pkcs1.rs:108
Function
encode_rsa2048_pub_der
()
tests/pkcs8.rs:66
Function
encode_rsa2048_pub_pem
()
tests/pkcs1.rs:189
Function
encode_rsa2048_pub_pem
()
tests/pkcs8.rs:114
Function
encode_rsa4096_priv_der
()
tests/pkcs1.rs:101
Function
encode_rsa4096_priv_pem
()
tests/pkcs1.rs:181
Function
encode_rsa4096_pub_der
()
tests/pkcs1.rs:115
Function
encode_rsa4096_pub_pem
()
tests/pkcs1.rs:197
Method
encrypt
Encrypt the given message.
src/key.rs:146
Method
encrypt
( self, rng: &mut Rng, pub_key: &RsaPublicKey, msg: &[u8], )
src/pkcs1v15.rs:49
Function
encrypt_digest
Encrypts the given message with RSA and the padding scheme from [PKCS#1 OAEP]. The message must be no longer than the length of the public modulus mi
src/oaep.rs:208
Method
encrypt_with_rng
( &self, rng: &mut R, msg: &[u8], )
src/pkcs1v15/encrypting_key.rs:22
Method
eq
(&self, other: &RsaPrivateKey)
src/key.rs:55
Method
fmt
(&self, f: &mut core::fmt::Formatter)
src/errors.rs:74
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/oaep.rs:168
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/pss.rs:117
Method
fmt
(&self, fmt: &mut Formatter<'_>)
src/pss/signature.rs:51
Method
fmt
(&self, fmt: &mut Formatter<'_>)
src/pkcs1v15/signature.rs:51
Method
from
(err: pkcs1::Error)
src/errors.rs:103
Method
from
(private_key: RsaPrivateKey)
src/key.rs:121
Method
from
(key: RsaPublicKey)
src/pss/verifying_key.rs:146
Method
from
(key: RsaPrivateKey)
src/pss/blinded_signing_key.rs:172
Method
from
(signature: Signature)
src/pss/signature.rs:43
Method
from
(key: RsaPrivateKey)
src/pss/signing_key.rs:194
Method
from
(key: RsaPublicKey)
src/pkcs1v15/verifying_key.rs:167
Method
from
(signature: Signature)
src/pkcs1v15/signature.rs:43
Method
from
(key: RsaPrivateKey)
src/pkcs1v15/signing_key.rs:202
Method
from_components
Constructs an RSA key pair from individual components: - `n`: RSA modulus - `e`: public exponent (i.e. encrypting exponent) - `d`: private exponent (
src/key.rs:248
Method
from_p_q
Constructs an RSA key pair from its two primes p and q. This will rebuild the private exponent and the modulus. Private exponent will be rebuilt usi
src/key.rs:287
Method
from_primes
Constructs an RSA key pair from its primes. This will rebuild the private exponent and the modulus.
src/key.rs:301
Function
get_default_pss_signature_algo_id
Returns the [`AlgorithmIdentifierOwned`] associated with PSS signature using a given digest.
src/pss.rs:231
Function
get_pss_signature_algo_id
(salt_len: u8)
src/pss.rs:239
Method
hash
(&self, state: &mut H)
src/key.rs:69
Function
invalid_coeff_private_key_regression
()
src/key.rs:707
Method
new
Create a new public key from its components. This function accepts public keys with a modulus size up to 4096-bits, i.e. [`RsaPublicKey::MAX_SIZE`].
src/key.rs:180
Method
new
Create new PKCS#1 v1.5 padding for the given digest. The digest must have an [`AssociatedOid`]. Make sure to enable the `oid` feature of the relevant
src/pkcs1v15.rs:74
Method
new
Create a new OAEP `PaddingScheme`, using `T` as the hash function for both the default (empty) label and for MGF1. # Example ``` use sha1::Sha1; use
src/oaep.rs:69
Method
new
New PSS padding for the given digest. Digest output size is used as a salt length.
src/pss.rs:55
Method
new
Create a new RSASSA-PSS verifying key. Digest output size is used as a salt length.
src/pss/verifying_key.rs:31
Method
new
Create a new RSASSA-PSS signing key which produces "blinded" signatures. Digest output size is used as a salt length.
src/pss/blinded_signing_key.rs:38
Method
new
Create a new RSASSA-PSS signing key. Digest output size is used as a salt length.
src/pss/signing_key.rs:45
Method
new
Create a new verifying key with a prefix for the digest `D`.
src/pkcs1v15/verifying_key.rs:33
Method
new
Create a new verifying key from an RSA public key.
src/pkcs1v15/decrypting_key.rs:21
Method
new
Create a new verifying key from an RSA public key.
src/pkcs1v15/encrypting_key.rs:16
Method
new
Create a new signing key with a prefix for the digest `D`.
src/pkcs1v15/signing_key.rs:37
Method
new
Create a new verifying key from an RSA public key.
src/oaep/decrypting_key.rs:37
Method
new
Create a new verifying key from an RSA public key.
src/oaep/encrypting_key.rs:32
Method
new_blinded
New PSS padding for blinded signatures (RSA-BSSA) for the given digest. Digest output size is used as a salt length.
src/pss.rs:70
Method
new_blinded_with_salt
New PSS padding for blinded signatures (RSA-BSSA) for the given digest with a salt value of the given length.
src/pss.rs:76
Method
new_raw
()
src/pkcs1v15.rs:98
Method
new_unchecked
Create a new public key, bypassing checks around the modulus and public exponent size. This method is not recommended, and only intended for unusual
src/key.rs:197
Method
new_unprefixed
Create new PKCS#1 v1.5 padding for computing an unprefixed signature. This sets `hash_len` to `None` and uses an empty `prefix`.
src/pkcs1v15.rs:87
Method
new_unprefixed
Create a new verifying key from an RSA public key with an empty prefix. ## Note: unprefixed signatures are uncommon In most cases you'll want to use
src/pkcs1v15/verifying_key.rs:57
Method
new_unprefixed
Create a new signing key from the give RSA private key with an empty prefix. ## Note: unprefixed signatures are uncommon In most cases you'll want t
src/pkcs1v15/signing_key.rs:79
Method
new_with_exp
Generate a new RSA key pair of the given bit size and the public exponent using the passed in `rng`. Unless you have specific needs, you should use `
src/key.rs:226
Method
new_with_label
Create a new OAEP `PaddingScheme` with an associated `label`, using `T` as the hash function for both the label and for MGF1.
src/oaep.rs:78
Method
new_with_label
Create a new verifying key from an RSA public key using provided label
src/oaep/decrypting_key.rs:47
Method
new_with_label
Create a new verifying key from an RSA public key using provided label
src/oaep/encrypting_key.rs:42
Method
new_with_max_size
Create a new public key from its components.
src/key.rs:185
Method
new_with_mgf_hash
Create a new OAEP `PaddingScheme`, using `T` as the hash function for the default (empty) label, and `U` as the hash function for MGF1. If a label is
src/oaep.rs:106
Method
new_with_mgf_hash_and_label
Create a new OAEP `PaddingScheme` with an associated `label`, using `T` as the hash function for the label, and `U` as the hash function for MGF1.
src/oaep.rs:118
Method
new_with_prefix
(key: RsaPublicKey)
src/pkcs1v15/verifying_key.rs:43
Method
new_with_prefix
(key: RsaPrivateKey)
src/pkcs1v15/signing_key.rs:56
Method
new_with_salt
New PSS padding for the given digest with a salt value of the given length.
src/pss.rs:60
Method
new_with_salt_len
Create a new RSASSA-PSS verifying key.
src/pss/verifying_key.rs:36
Method
new_with_salt_len
Create a new RSASSA-PSS signing key which produces "blinded" signatures with a salt of the given length.
src/pss/blinded_signing_key.rs:44
Method
new_with_salt_len
Create a new RSASSA-PSS signing key with a salt of the given length.
src/pss/signing_key.rs:50
Method
next_u64
(&mut self)
src/dummy_rng.rs:13
Function
oaep_decrypt_digest
( em: &mut [u8], label: Option<String>, k: usize, )
src/algorithms/oaep.rs:168
Function
oaep_encrypt_digest
( rng: &mut R, msg: &[u8], label: Option<String>, k: usize, )
src/algorithms/oaep.rs:89
Function
pkcs1v15_generate_prefix
()
src/algorithms/pkcs1v15.rs:162
Method
random
Create a new random RSASSA-PSS signing key which produces "blinded" signatures. Digest output size is used as a salt length.
src/pss/blinded_signing_key.rs:55
← previous
next →
101–200 of 285, ranked by callers