MCPcopy Create free account

hub / github.com/RustCrypto/RSA / functions

Functions285 in github.com/RustCrypto/RSA

Functiondecode_rsa2048_priv_der
()
tests/pkcs1.rs:48
Functiondecode_rsa2048_priv_der
()
tests/pkcs8.rs:30
Functiondecode_rsa2048_priv_pem
()
tests/pkcs1.rs:123
Functiondecode_rsa2048_priv_pem
()
tests/pkcs8.rs:79
Functiondecode_rsa2048_pub_der
()
tests/pkcs1.rs:74
Functiondecode_rsa2048_pub_der
()
tests/pkcs8.rs:44
Functiondecode_rsa2048_pub_pem
()
tests/pkcs1.rs:151
Functiondecode_rsa2048_pub_pem
()
tests/pkcs8.rs:94
Functiondecode_rsa4096_priv_der
()
tests/pkcs1.rs:61
Functiondecode_rsa4096_priv_pem
()
tests/pkcs1.rs:137
Functiondecode_rsa4096_pub_der
()
tests/pkcs1.rs:84
Functiondecode_rsa4096_pub_pem
()
tests/pkcs1.rs:162
Methoddecrypt
(&self, ciphertext: &[u8])
src/pkcs1v15/decrypting_key.rs:27
Methoddecrypt
(&self, ciphertext: &[u8])
src/oaep/decrypting_key.rs:62
Functiondecrypt_digest
( rng: Option<&mut R>, priv_key: &RsaPrivateKey, ciphertext: &[u8], label: Option<String>, )
src/oaep.rs:268
Methoddecrypt_with_rng
( &self, rng: &mut R, ciphertext: &[u8], )
src/pkcs1v15/decrypting_key.rs:33
Functiondo_test_encrypt_decrypt_oaep
( prk: &RsaPrivateKey, )
src/oaep.rs:384
Functiondo_test_encrypt_decrypt_oaep_traits
(prk: &RsaPrivateKey)
src/oaep.rs:519
Functiondo_test_oaep_with_different_hashes
( prk: &RsaPrivateKey, )
src/oaep.rs:429
Functiondo_test_oaep_with_different_hashes_traits
( prk: &RsaPrivateKey, )
src/oaep.rs:523
Methoddrop
(&mut self)
src/key.rs:77
Methoddrop
(&mut self)
src/traits/keys.rs:62
Functionemsa_pss_encode_digest
( m_hash: &[u8], em_bits: usize, salt: &[u8], )
src/algorithms/pss.rs:92
Functionemsa_pss_verify_digest
( m_hash: &[u8], em: &mut [u8], s_len: usize, key_bits: usize, )
src/algorithms/pss.rs:281
Functionencode_rsa2048_priv_der
()
tests/pkcs1.rs:94
Functionencode_rsa2048_priv_der
()
tests/pkcs8.rs:55
Functionencode_rsa2048_priv_pem
()
tests/pkcs1.rs:173
Functionencode_rsa2048_priv_pem
()
tests/pkcs8.rs:106
Functionencode_rsa2048_pub_der
()
tests/pkcs1.rs:108
Functionencode_rsa2048_pub_der
()
tests/pkcs8.rs:66
Functionencode_rsa2048_pub_pem
()
tests/pkcs1.rs:189
Functionencode_rsa2048_pub_pem
()
tests/pkcs8.rs:114
Functionencode_rsa4096_priv_der
()
tests/pkcs1.rs:101
Functionencode_rsa4096_priv_pem
()
tests/pkcs1.rs:181
Functionencode_rsa4096_pub_der
()
tests/pkcs1.rs:115
Functionencode_rsa4096_pub_pem
()
tests/pkcs1.rs:197
Methodencrypt
Encrypt the given message.
src/key.rs:146
Methodencrypt
( self, rng: &mut Rng, pub_key: &RsaPublicKey, msg: &[u8], )
src/pkcs1v15.rs:49
Functionencrypt_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
Methodencrypt_with_rng
( &self, rng: &mut R, msg: &[u8], )
src/pkcs1v15/encrypting_key.rs:22
Methodeq
(&self, other: &RsaPrivateKey)
src/key.rs:55
Methodfmt
(&self, f: &mut core::fmt::Formatter)
src/errors.rs:74
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/oaep.rs:168
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/pss.rs:117
Methodfmt
(&self, fmt: &mut Formatter<'_>)
src/pss/signature.rs:51
Methodfmt
(&self, fmt: &mut Formatter<'_>)
src/pkcs1v15/signature.rs:51
Methodfrom
(err: pkcs1::Error)
src/errors.rs:103
Methodfrom
(private_key: RsaPrivateKey)
src/key.rs:121
Methodfrom
(key: RsaPublicKey)
src/pss/verifying_key.rs:146
Methodfrom
(key: RsaPrivateKey)
src/pss/blinded_signing_key.rs:172
Methodfrom
(signature: Signature)
src/pss/signature.rs:43
Methodfrom
(key: RsaPrivateKey)
src/pss/signing_key.rs:194
Methodfrom
(key: RsaPublicKey)
src/pkcs1v15/verifying_key.rs:167
Methodfrom
(signature: Signature)
src/pkcs1v15/signature.rs:43
Methodfrom
(key: RsaPrivateKey)
src/pkcs1v15/signing_key.rs:202
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:248
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:287
Methodfrom_primes
Constructs an RSA key pair from its primes. This will rebuild the private exponent and the modulus.
src/key.rs:301
Functionget_default_pss_signature_algo_id
Returns the [`AlgorithmIdentifierOwned`] associated with PSS signature using a given digest.
src/pss.rs:231
Functionget_pss_signature_algo_id
(salt_len: u8)
src/pss.rs:239
Methodhash
(&self, state: &mut H)
src/key.rs:69
Functioninvalid_coeff_private_key_regression
()
src/key.rs:707
Methodnew
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
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:74
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:69
Methodnew
New PSS padding for the given digest. Digest output size is used as a salt length.
src/pss.rs:55
Methodnew
Create a new RSASSA-PSS verifying key. Digest output size is used as a salt length.
src/pss/verifying_key.rs:31
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:38
Methodnew
Create a new RSASSA-PSS signing key. Digest output size is used as a salt length.
src/pss/signing_key.rs:45
Methodnew
Create a new verifying key with a prefix for the digest `D`.
src/pkcs1v15/verifying_key.rs:33
Methodnew
Create a new verifying key from an RSA public key.
src/pkcs1v15/decrypting_key.rs:21
Methodnew
Create a new verifying key from an RSA public key.
src/pkcs1v15/encrypting_key.rs:16
Methodnew
Create a new signing key with a prefix for the digest `D`.
src/pkcs1v15/signing_key.rs:37
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_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
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:76
Methodnew_raw
()
src/pkcs1v15.rs:98
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:197
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:87
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:57
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:79
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:226
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:78
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:185
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:106
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:118
Methodnew_with_prefix
(key: RsaPublicKey)
src/pkcs1v15/verifying_key.rs:43
Methodnew_with_prefix
(key: RsaPrivateKey)
src/pkcs1v15/signing_key.rs:56
Methodnew_with_salt
New PSS padding for the given digest with a salt value of the given length.
src/pss.rs:60
Methodnew_with_salt_len
Create a new RSASSA-PSS verifying key.
src/pss/verifying_key.rs:36
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:44
Methodnew_with_salt_len
Create a new RSASSA-PSS signing key with a salt of the given length.
src/pss/signing_key.rs:50
Methodnext_u64
(&mut self)
src/dummy_rng.rs:13
Functionoaep_decrypt_digest
( em: &mut [u8], label: Option<String>, k: usize, )
src/algorithms/oaep.rs:168
Functionoaep_encrypt_digest
( rng: &mut R, msg: &[u8], label: Option<String>, k: usize, )
src/algorithms/oaep.rs:89
Functionpkcs1v15_generate_prefix
()
src/algorithms/pkcs1v15.rs:162
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:55
← previousnext →101–200 of 285, ranked by callers