MCPcopy Create free account

hub / github.com/RustCrypto/RSA / functions

Functions365 in github.com/RustCrypto/RSA

Methodfrom
(key: RsaPublicKey)
src/pss/verifying_key.rs:170
Methodfrom
(key: RsaPrivateKey)
src/pss/blinded_signing_key.rs:205
Methodfrom
(signature: Signature)
src/pss/signature.rs:46
Methodfrom
(key: RsaPrivateKey)
src/pss/signing_key.rs:242
Methodfrom
(key: RsaPublicKey)
src/pkcs1v15/verifying_key.rs:168
Methodfrom
(signature: Signature)
src/pkcs1v15/signature.rs:46
Methodfrom
(key: RsaPrivateKey)
src/pkcs1v15/signing_key.rs:237
Methodfrom_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
Methodfrom_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
Methodfrom_components_with_large_exponent
( n: BoxedUint, e: BoxedUint, d: BoxedUint, primes: Vec<BoxedUint>, )
src/key.rs:435
Methodfrom_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
Methodfrom_pkcs1_der
(bytes: &[u8])
src/encoding.rs:30
Methodfrom_primes
Constructs an RSA key pair from its primes. This will rebuild the private exponent and the modulus.
src/key.rs:507
Functionget_default_pss_signature_algo_id
()
src/pss.rs:271
Functionget_pss_signature_algo_id
(salt_len: u8)
src/pss.rs:280
Methodhash
(&self, state: &mut H)
src/key.rs:54
Functioninvalid_coeff_private_key_regression
()
src/key.rs:1000
Methodn_bytes
Returns the big endian serialization of the modulus of the key
src/traits/keys.rs:33
Methodnew
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
Methodnew
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
Methodnew
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
Methodnew
New PSS padding for the given digest. Digest output size is used as a salt length.
src/pss.rs:73
Methodnew
Create a new RSASSA-PSS verifying key. Digest output size is used as a salt length.
src/pss/verifying_key.rs:40
Methodnew
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
Methodnew
Create a new RSASSA-PSS signing key. Digest output size is used as a salt length.
src/pss/signing_key.rs:56
Methodnew
Create a new verifying key with a prefix for the digest `D`.
src/pkcs1v15/verifying_key.rs:41
Methodnew
Create a new verifying key from an RSA public key.
src/pkcs1v15/decrypting_key.rs:24
Methodnew
Create a new verifying key from an RSA public key.
src/pkcs1v15/encrypting_key.rs:19
Methodnew
Create a new signing key with a prefix for the digest `D`.
src/pkcs1v15/signing_key.rs:47
Methodnew
Create a new verifying key from an RSA public key.
src/oaep/decrypting_key.rs:37
Methodnew
Create a new verifying key from an RSA public key.
src/oaep/encrypting_key.rs:32
Methodnew
()
tests/wycheproof.rs:80
Methodnew_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
Methodnew_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
Methodnew_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
Methodnew_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
Methodnew_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
Methodnew_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
Methodnew_with_auto_salt_len
Create a new RSASSA-PSS verifying key. Attempts to automatically detect the salt length.
src/pss/verifying_key.rs:55
Methodnew_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
Methodnew_with_exp_unchecked
( rng: &mut R, bit_size: usize, exp: BoxedUint, )
src/key.rs:330
Methodnew_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
Methodnew_with_label
Create a new verifying key from an RSA public key using provided label
src/oaep/decrypting_key.rs:47
Methodnew_with_label
Create a new verifying key from an RSA public key using provided label
src/oaep/encrypting_key.rs:42
Methodnew_with_max_size
Create a new public key from its components.
src/key.rs:233
Methodnew_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
Methodnew_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
Methodnew_with_salt
New PSS padding for the given digest with a salt value of the given length.
src/pss.rs:78
Methodnew_with_salt_len
Create a new RSASSA-PSS verifying key.
src/pss/verifying_key.rs:45
Methodnew_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
Methodnew_with_salt_len
Create a new RSASSA-PSS signing key with a salt of the given length.
src/pss/signing_key.rs:61
Functionoaep_decrypt_digest
( em: &mut [u8], label: Option<Box<[u8]>>, k: usize, )
src/algorithms/oaep.rs:181
Functionoaep_encrypt_digest
( rng: &mut R, msg: &[u8], label: Option<Box<[u8]>>, k: usize, )
src/algorithms/oaep.rs:97
Functionpkcs1_error_to_pkcs8
Convert `pkcs1::Result` to `pkcs8::Result`.
src/encoding.rs:227
Functionpkcs1_error_to_spki
Convert `pkcs1::Result` to `spki::Result`.
src/encoding.rs:235
Functionpkcs1v15_generate_prefix
()
src/algorithms/pkcs1v15.rs:167
Methodrandom
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
Methodrandom
Generate a new random RSASSA-PSS signing key. Digest output size is used as a salt length.
src/pss/signing_key.rs:71
Methodrandom
Generate a new signing key with a prefix for the digest `D`.
src/pkcs1v15/signing_key.rs:56
Methodrandom_unprefixed
Generate a new signing key with an empty prefix.
src/pkcs1v15/signing_key.rs:83
Methodrandom_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
Methodrandom_with_salt_len
Generate a new random RSASSA-PSS signing key with a salt of the given length.
src/pss/signing_key.rs:76
Functionrecover_primes_works
()
src/algorithms/rsa.rs:400
Functionreject_oversized_private_key
()
src/key.rs:1094
Methodsalt_len
Return specified salt length for this key
src/pss/verifying_key.rs:64
Methodsalt_len
Return specified salt length for this key
src/pss/blinded_signing_key.rs:83
Methodsalt_len
Return specified salt length for this key
src/pss/signing_key.rs:89
Methodserialize
(&self, serializer: S)
src/key.rs:806
Methodserialize
(&self, serializer: S)
src/pss/verifying_key.rs:219
Methodserialize
(&self, serializer: S)
src/pss/blinded_signing_key.rs:261
Methodserialize
(&self, serializer: S)
src/pss/signature.rs:71
Methodserialize
(&self, serializer: S)
src/pss/signing_key.rs:299
Methodserialize
(&self, serializer: S)
src/pkcs1v15/verifying_key.rs:224
Methodserialize
(&self, serializer: S)
src/pkcs1v15/signature.rs:77
Methodserialize
(&self, serializer: S)
src/pkcs1v15/signing_key.rs:311
Methodsign
( mut self, rng: Option<&mut Rng>, priv_key: &RsaPrivateKey, hashed: &[u8],
src/pss.rs:107
Functionsign_digest
( rng: &mut T, blind: bool, priv_key: &RsaPrivateKey, hashed: &[u8], salt_len: usize, )
src/pss.rs:207
Methodsign_prehash
(&self, prehash: &[u8])
src/pkcs1v15/signing_key.rs:116
Methodsign_prehash_with_rng
( &self, rng: &mut R, prehash: &[u8], )
src/pss/blinded_signing_key.rs:147
Functionsign_pss_with_salt_digest
( blind_rng: Option<&mut T>, priv_key: &RsaPrivateKey, hashed: &[u8], salt: &[u8], )
src/pss.rs:249
Methodsignature_algorithm_identifier
(&self)
src/pss/blinded_signing_key.rs:186
Methodsignature_algorithm_identifier
(&self)
src/pss/signing_key.rs:223
Functionsignature_stringify
()
tests/pkcs1v15.rs:4
Functionsigning_key_new_same_as_from
()
tests/pkcs1v15.rs:27
Functiontest_decrypt_oaep_invalid_hash
()
src/oaep.rs:502
Functiontest_decrypt_oaep_invalid_hash_traits
()
src/oaep.rs:596
Functiontest_decrypt_pkcs1v15
(#[case] ciphertext: &str, #[case] plaintext: &str)
src/pkcs1v15.rs:329
Functiontest_decrypt_pkcs1v15_traits
(#[case] ciphertext: &str, #[case] plaintext: &str)
src/pkcs1v15.rs:379
Functiontest_encrypt_decrypt_oaep
()
src/oaep.rs:378
Functiontest_encrypt_decrypt_oaep_traits
()
src/oaep.rs:522
Functiontest_encrypt_decrypt_pkcs1v15
()
src/pkcs1v15.rs:339
Functiontest_encrypt_decrypt_pkcs1v15_traits
()
src/pkcs1v15.rs:390
Functiontest_encrypt_tiny_no_crash
()
src/algorithms/pkcs1v15.rs:206
Functiontest_from_components_with_large_exponent
()
src/key.rs:1216
Functiontest_from_components_with_small_exponent
()
src/key.rs:1264
Functiontest_from_into
()
src/key.rs:862
Functiontest_impossible_keys
()
src/algorithms/generate.rs:143
Functiontest_left_pad
()
src/algorithms/pad.rs:47
Functiontest_negative_decryption_value
()
src/key.rs:943
Functiontest_non_zero_bytes
()
src/algorithms/pkcs1v15.rs:194
← previousnext →201–300 of 365, ranked by callers