Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/RSA
/ functions
Functions
365 in github.com/RustCrypto/RSA
⨍
Functions
365
◇
Types & classes
37
Method
from
(key: RsaPublicKey)
src/pss/verifying_key.rs:170
Method
from
(key: RsaPrivateKey)
src/pss/blinded_signing_key.rs:205
Method
from
(signature: Signature)
src/pss/signature.rs:46
Method
from
(key: RsaPrivateKey)
src/pss/signing_key.rs:242
Method
from
(key: RsaPublicKey)
src/pkcs1v15/verifying_key.rs:168
Method
from
(signature: Signature)
src/pkcs1v15/signature.rs:46
Method
from
(key: RsaPrivateKey)
src/pkcs1v15/signing_key.rs:237
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:465
Method
from_components_inner
Private helper function that constructs an RSA key pair from components WITHOUT performing any validation or precomputation. This is the shared imple
src/key.rs:353
Method
from_components_with_large_exponent
( n: BoxedUint, e: BoxedUint, d: BoxedUint, primes: Vec<BoxedUint>, )
src/key.rs:435
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:488
Method
from_pkcs1_der
(bytes: &[u8])
src/encoding.rs:30
Method
from_primes
Constructs an RSA key pair from its primes. This will rebuild the private exponent and the modulus.
src/key.rs:507
Function
get_default_pss_signature_algo_id
()
src/pss.rs:271
Function
get_pss_signature_algo_id
(salt_len: u8)
src/pss.rs:280
Method
hash
(&self, state: &mut H)
src/key.rs:54
Function
invalid_coeff_private_key_regression
()
src/key.rs:1000
Method
n_bytes
Returns the big endian serialization of the modulus of the key
src/traits/keys.rs:33
Method
new
Create a new public key from its components. This function accepts public keys with a modulus size up to 8192-bits, i.e. [`RsaPublicKey::MAX_SIZE`].
src/key.rs:228
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:93
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:82
Method
new
New PSS padding for the given digest. Digest output size is used as a salt length.
src/pss.rs:73
Method
new
Create a new RSASSA-PSS verifying key. Digest output size is used as a salt length.
src/pss/verifying_key.rs:40
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:47
Method
new
Create a new RSASSA-PSS signing key. Digest output size is used as a salt length.
src/pss/signing_key.rs:56
Method
new
Create a new verifying key with a prefix for the digest `D`.
src/pkcs1v15/verifying_key.rs:41
Method
new
Create a new verifying key from an RSA public key.
src/pkcs1v15/decrypting_key.rs:24
Method
new
Create a new verifying key from an RSA public key.
src/pkcs1v15/encrypting_key.rs:19
Method
new
Create a new signing key with a prefix for the digest `D`.
src/pkcs1v15/signing_key.rs:47
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
()
tests/wycheproof.rs:80
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:88
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:94
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:251
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:106
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:59
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:74
Method
new_with_auto_salt_len
Create a new RSASSA-PSS verifying key. Attempts to automatically detect the salt length.
src/pss/verifying_key.rs:55
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:303
Method
new_with_exp_unchecked
( rng: &mut R, bit_size: usize, exp: BoxedUint, )
src/key.rs:330
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:91
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:233
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:126
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:135
Method
new_with_salt
New PSS padding for the given digest with a salt value of the given length.
src/pss.rs:78
Method
new_with_salt_len
Create a new RSASSA-PSS verifying key.
src/pss/verifying_key.rs:45
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:53
Method
new_with_salt_len
Create a new RSASSA-PSS signing key with a salt of the given length.
src/pss/signing_key.rs:61
Function
oaep_decrypt_digest
( em: &mut [u8], label: Option<Box<[u8]>>, k: usize, )
src/algorithms/oaep.rs:181
Function
oaep_encrypt_digest
( rng: &mut R, msg: &[u8], label: Option<Box<[u8]>>, k: usize, )
src/algorithms/oaep.rs:97
Function
pkcs1_error_to_pkcs8
Convert `pkcs1::Result` to `pkcs8::Result`.
src/encoding.rs:227
Function
pkcs1_error_to_spki
Convert `pkcs1::Result` to `spki::Result`.
src/encoding.rs:235
Function
pkcs1v15_generate_prefix
()
src/algorithms/pkcs1v15.rs:167
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:64
Method
random
Generate a new random RSASSA-PSS signing key. Digest output size is used as a salt length.
src/pss/signing_key.rs:71
Method
random
Generate a new signing key with a prefix for the digest `D`.
src/pkcs1v15/signing_key.rs:56
Method
random_unprefixed
Generate a new signing key with an empty prefix.
src/pkcs1v15/signing_key.rs:83
Method
random_with_salt_len
Create a new random RSASSA-PSS signing key which produces "blinded" signatures with a salt of the given length.
src/pss/blinded_signing_key.rs:70
Method
random_with_salt_len
Generate a new random RSASSA-PSS signing key with a salt of the given length.
src/pss/signing_key.rs:76
Function
recover_primes_works
()
src/algorithms/rsa.rs:400
Function
reject_oversized_private_key
()
src/key.rs:1094
Method
salt_len
Return specified salt length for this key
src/pss/verifying_key.rs:64
Method
salt_len
Return specified salt length for this key
src/pss/blinded_signing_key.rs:83
Method
salt_len
Return specified salt length for this key
src/pss/signing_key.rs:89
Method
serialize
(&self, serializer: S)
src/key.rs:806
Method
serialize
(&self, serializer: S)
src/pss/verifying_key.rs:219
Method
serialize
(&self, serializer: S)
src/pss/blinded_signing_key.rs:261
Method
serialize
(&self, serializer: S)
src/pss/signature.rs:71
Method
serialize
(&self, serializer: S)
src/pss/signing_key.rs:299
Method
serialize
(&self, serializer: S)
src/pkcs1v15/verifying_key.rs:224
Method
serialize
(&self, serializer: S)
src/pkcs1v15/signature.rs:77
Method
serialize
(&self, serializer: S)
src/pkcs1v15/signing_key.rs:311
Method
sign
( mut self, rng: Option<&mut Rng>, priv_key: &RsaPrivateKey, hashed: &[u8],
src/pss.rs:107
Function
sign_digest
( rng: &mut T, blind: bool, priv_key: &RsaPrivateKey, hashed: &[u8], salt_len: usize, )
src/pss.rs:207
Method
sign_prehash
(&self, prehash: &[u8])
src/pkcs1v15/signing_key.rs:116
Method
sign_prehash_with_rng
( &self, rng: &mut R, prehash: &[u8], )
src/pss/blinded_signing_key.rs:147
Function
sign_pss_with_salt_digest
( blind_rng: Option<&mut T>, priv_key: &RsaPrivateKey, hashed: &[u8], salt: &[u8], )
src/pss.rs:249
Method
signature_algorithm_identifier
(&self)
src/pss/blinded_signing_key.rs:186
Method
signature_algorithm_identifier
(&self)
src/pss/signing_key.rs:223
Function
signature_stringify
()
tests/pkcs1v15.rs:4
Function
signing_key_new_same_as_from
()
tests/pkcs1v15.rs:27
Function
test_decrypt_oaep_invalid_hash
()
src/oaep.rs:502
Function
test_decrypt_oaep_invalid_hash_traits
()
src/oaep.rs:596
Function
test_decrypt_pkcs1v15
(#[case] ciphertext: &str, #[case] plaintext: &str)
src/pkcs1v15.rs:329
Function
test_decrypt_pkcs1v15_traits
(#[case] ciphertext: &str, #[case] plaintext: &str)
src/pkcs1v15.rs:379
Function
test_encrypt_decrypt_oaep
()
src/oaep.rs:378
Function
test_encrypt_decrypt_oaep_traits
()
src/oaep.rs:522
Function
test_encrypt_decrypt_pkcs1v15
()
src/pkcs1v15.rs:339
Function
test_encrypt_decrypt_pkcs1v15_traits
()
src/pkcs1v15.rs:390
Function
test_encrypt_tiny_no_crash
()
src/algorithms/pkcs1v15.rs:206
Function
test_from_components_with_large_exponent
()
src/key.rs:1216
Function
test_from_components_with_small_exponent
()
src/key.rs:1264
Function
test_from_into
()
src/key.rs:862
Function
test_impossible_keys
()
src/algorithms/generate.rs:143
Function
test_left_pad
()
src/algorithms/pad.rs:47
Function
test_negative_decryption_value
()
src/key.rs:943
Function
test_non_zero_bytes
()
src/algorithms/pkcs1v15.rs:194
← previous
next →
201–300 of 365, ranked by callers