MCPcopy Create free account

hub / github.com/RustCrypto/SSH / functions

Functions877 in github.com/RustCrypto/SSH

Methodfrom
(bytes: [u8; SIZE])
ssh-key/src/private/ecdsa.rs:100
Methodfrom
(key: Ed25519PrivateKey)
ssh-key/src/private/ed25519.rs:104
Methodfrom_bytes
Create a new multiple precision integer from the given big endian-encoded byte slice. Note that this method expects a leading zero on positive intege
ssh-encoding/src/mpint.rs:58
Methodfrom_bytes
Parse a raw binary SSH private key. # Errors Returns [`Error::Encoding`] in the event of an encoding error.
ssh-key/src/private.rs:269
Methodfrom_bytes
Parse a raw binary SSH public key. # Errors Returns [`Error::Encoding`] in the event of an encoding error.
ssh-key/src/public.rs:154
Methodfrom_bytes
Parse a raw binary OpenSSH certificate. # Errors Returns [`Error::Encoding`] in the event of an encoding error.
ssh-key/src/certificate.rs:198
Methodfrom_bytes
(bytes: &[u8; Self::BYTE_SIZE])
ssh-key/src/private/ed25519.rs:33
Methodfrom_certificate_type
Create a new [`AlgorithmName`] from an OpenSSH certificate format string identifier. # Errors Returns [`LabelError`] in the event the identifier is i
ssh-key/src/algorithm/name.rs:68
Methodfrom_iter
(iter: T)
ssh-key/src/certificate/options_map.rs:119
Methodfrom_openssh
Parse an OpenSSH-formatted PEM private key. OpenSSH-formatted private keys begin with the following: ```text -----BEGIN OPENSSH PRIVATE KEY----- ```
ssh-key/src/private.rs:235
Methodfrom_openssh
Parse an OpenSSH-formatted public key. OpenSSH-formatted public keys look like the following: ```text ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILM+rvN+ot
ssh-key/src/public.rs:131
Methodfrom_openssh
Parse an OpenSSH-formatted certificate. OpenSSH-formatted certificates look like the following (i.e. similar to OpenSSH public keys with `-cert-v01@o
ssh-key/src/certificate.rs:180
Methodfrom_pem
Decode signature from PEM which begins with the following: ```text -----BEGIN SSH SIGNATURE----- ``` # Errors Returns [`Error::Encoding`] in the eve
ssh-key/src/sshsig.rs:94
Methodfrom_positive_bytes
(mut bytes: &[u8])
ssh-encoding/src/mpint.rs:68
Functionfrom_positive_bytes_strips_leading_zeroes
()
ssh-encoding/src/mpint.rs:288
Methodfrom_ppk
(ppk: impl AsRef<str>, passphrase: Option<String>)
ssh-key/src/private.rs:250
Methodfrom_sec1_bytes
Parse an ECDSA public key from a SEC1-encoded point. Determines the key type from the SEC1 tag byte and length. # Errors Returns [`Error::Encoding`]
ssh-key/src/public/ecdsa.rs:49
Methodfrom_seed
(seed: &[u8; Ed25519PrivateKey::BYTE_SIZE])
ssh-key/src/private/ed25519.rs:169
Methodfrom_str
(ciphername: &str)
ssh-cipher/src/lib.rs:492
Methodfrom_str
(s: &str)
ssh-key/src/private.rs:1047
Methodfrom_str
(s: &str)
ssh-key/src/comment.rs:61
Methodfrom_str
(line: &str)
ssh-key/src/known_hosts.rs:159
Methodfrom_str
(line: &str)
ssh-key/src/authorized_keys.rs:153
Methodfrom_str
(s: &str)
ssh-key/src/public.rs:474
Methodfrom_str
(s: &str)
ssh-key/src/sshsig.rs:388
Methodfrom_str
(id: &str)
ssh-key/src/fingerprint.rs:197
Methodfrom_str
(s: &str)
ssh-key/src/certificate.rs:565
Methodfrom_str
(id: &str)
ssh-key/src/algorithm.rs:303
Methodfrom_str
(id: &str)
ssh-key/src/algorithm/name.rs:86
Functionfull_line_hashed
()
ssh-key/src/known_hosts.rs:366
Functiongeneration
()
ssh-key/src/fingerprint/randomart.rs:108
Methodhash
(&self, state: &mut H)
ssh-key/src/public/dsa.rs:107
Methodhash
(&self, state: &mut H)
ssh-key/src/public/rsa.rs:96
Methodhost_patterns
(&self)
ssh-key/src/known_hosts.rs:130
Functionimplicit
()
ssh-derive/src/decode/field.rs:303
Functioninvalid_algorithm_name
()
ssh-key/tests/algorithm_name.rs:23
Methodiqmp
(&self)
ssh-key/src/private/rsa.rs:59
Methodis_bcrypt
(&self)
ssh-key/src/kdf.rs:139
Methodis_dsa
(self)
ssh-key/src/algorithm.rs:257
Methodis_dsa
(&self)
ssh-key/src/public/key_data.rs:182
Methodis_dsa
(&self)
ssh-key/src/private/keypair.rs:172
Methodis_ecdsa
(self)
ssh-key/src/algorithm.rs:263
Methodis_ecdsa
(&self)
ssh-key/src/public/key_data.rs:189
Methodis_ecdsa
(&self)
ssh-key/src/private/keypair.rs:179
Methodis_ed25519
(self)
ssh-key/src/algorithm.rs:269
Methodis_ed25519
(&self)
ssh-key/src/public/key_data.rs:195
Methodis_ed25519
(&self)
ssh-key/src/private/keypair.rs:185
Methodis_encrypted
(&self)
ssh-key/src/private/keypair.rs:192
Methodis_host
(self)
ssh-key/src/certificate/cert_type.rs:22
Methodis_none
(self)
ssh-key/src/algorithm.rs:546
Methodis_other
(&self)
ssh-key/src/public/key_data.rs:222
Methodis_other
(&self)
ssh-key/src/private/keypair.rs:227
Methodis_rsa
(self)
ssh-key/src/algorithm.rs:275
Methodis_rsa
(&self)
ssh-key/src/public/key_data.rs:202
Methodis_rsa
(&self)
ssh-key/src/private/keypair.rs:206
Methodis_sha256
(self)
ssh-key/src/fingerprint.rs:137
Methodis_sha512
(self)
ssh-key/src/fingerprint.rs:143
Methodis_sk_ecdsa_p256
(&self)
ssh-key/src/private/keypair.rs:213
Methodis_sk_ed25519
(&self)
ssh-key/src/private/keypair.rs:220
Methodis_supported
(cipher: Cipher)
ssh-cipher/src/block_cipher.rs:81
Methodis_supported
(cipher: Cipher)
ssh-cipher/src/block_cipher/aes.rs:63
Methodis_user
(self)
ssh-key/src/certificate/cert_type.rs:28
Methodkey_id
Set key ID: label to identify this particular certificate. Default `""` # Errors Returns [`Error::CertificateFieldInvalid`] if called multiple times
ssh-key/src/certificate/builder.rs:201
Methodkey_size
(&self)
ssh-key/src/public/rsa.rs:68
Methodkey_size
(&self)
ssh-key/src/private/rsa.rs:168
Methodlabel
(&self)
ssh-encoding/src/label.rs:59
Functionmac_computation_with_aad
()
ssh-cipher/src/chacha20poly1305.rs:274
Methodmarker
(&self)
ssh-key/src/known_hosts.rs:124
Functionmultiple_host_patterns
()
ssh-key/src/known_hosts.rs:338
Methodnew
Create a new [`SequenceField`] from the input [`Field`].
ssh-derive/src/decode/field.rs:22
Methodnew
(ciphername: &str)
ssh-cipher/src/lib.rs:170
Methodnew
(key: &ChaChaKey)
ssh-cipher/src/chacha20poly1305.rs:116
Methodnew
Initialize state for a particular block cipher mode of operation.
ssh-cipher/src/block_cipher/state.rs:16
Methodnew
Create a new decryptor object with the given [`Cipher`], `key`, and `iv` (i.e. initialization vector). # Errors - Returns [`Error::Crypto`] if the gi
ssh-cipher/src/block_cipher/decryptor.rs:33
Methodnew
Create a new encryptor object with the given [`Cipher`], `key`, and `iv` (i.e. initialization vector). # Errors - Returns [`Error::Crypto`] if the gi
ssh-cipher/src/block_cipher/encryptor.rs:35
Methodnew
(label: &str)
ssh-encoding/src/label.rs:49
Methodnew
Create a new PEM writer with the default options which writes output into the provided buffer. Uses 70-character line wrapping to be equivalent to Op
ssh-encoding/src/pem/writer.rs:17
Methodnew
Create a new PEM reader which autodetects the line width of the input.
ssh-encoding/src/pem/reader.rs:17
Methodnew
Create a new Base64 writer which writes output to the given byte slice. Output constructed using this method is not line-wrapped. # Errors Returns [
ssh-encoding/src/base64/writer.rs:24
Methodnew
Create a new Base64 reader for a byte slice containing contiguous (non-newline-delimited) Base64-encoded data. # Errors Returns [`Error::Base64`] if
ssh-encoding/src/base64/reader.rs:24
Methodnew
(key_data: KeypairData, comment: impl Into<Comment>)
ssh-key/src/private.rs:215
Methodnew
(mut ppk: PpkWrapper, passphrase: Option<String>)
ssh-key/src/ppk.rs:347
Methodnew
Create a new signature with the given algorithm and raw signature data. See specifications in toplevel [`Signature`] documentation for how to format
ssh-key/src/signature.rs:104
Methodnew
(algorithm: KdfAlg, rng: &mut R)
ssh-key/src/kdf.rs:48
Methodnew
(input: &'a str)
ssh-key/src/known_hosts.rs:56
Methodnew
(input: &'a str)
ssh-key/src/authorized_keys.rs:48
Methodnew
()
ssh-key/src/dot_ssh.rs:25
Methodnew
(key_data: KeyData, comment: impl Into<Comment>)
ssh-key/src/public.rs:114
Methodnew
Create a new signature with the given public key, namespace, hash algorithm, and signature. # Errors Returns [`Error::Namespace`] if the namespace is
ssh-key/src/sshsig.rs:62
Methodnew
(algorithm: HashAlg, public_key: &public::KeyData)
ssh-key/src/fingerprint.rs:63
Methodnew
Decode algorithm from the given string identifier. # Supported algorithms - `ecdsa-sha2-nistp256` - `ecdsa-sha2-nistp384` - `ecdsa-sha2-nistp521` - `
ssh-key/src/algorithm.rs:146
Methodnew
(ec_point: EcdsaNistP256PublicKey, application: impl Into<String>)
ssh-key/src/public/sk.rs:36
Methodnew
Create a new [`DsaPublicKey`] with the following components: - `p`: prime modulus. - `q`: prime divisor of `p - 1`. - `g`: generator of a subgroup of
ssh-key/src/public/dsa.rs:40
Methodnew
(key: Vec<u8>, algorithm: Algorithm)
ssh-key/src/public/opaque.rs:30
Methodnew
Create a new [`RsaPublicKey`] with the given components: - `e`: RSA public exponent. - `n`: RSA modulus. # Errors Returns [`Error::FormatEncoding`]
ssh-key/src/public/rsa.rs:37
Methodnew
()
ssh-key/src/certificate/options_map.rs:18
Methodnew
(secs: u64)
ssh-key/src/certificate/unix_time.rs:42
Methodnew
Create a new certificate builder for the given subject's public key. Also requires a nonce (random value typically 16 or 32 bytes long) and the valid
ssh-key/src/certificate/builder.rs:103
Methodnew
Create new "randomart" from the given fingerprint.
ssh-key/src/fingerprint/randomart.rs:30
Methodnew
Create a new algorithm identifier. # Errors Returns [`LabelError`] in the event the identifier is invalid.
ssh-key/src/algorithm/name.rs:43
← previousnext →601–700 of 877, ranked by callers