Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/SSH
/ functions
Functions
877 in github.com/RustCrypto/SSH
⨍
Functions
877
◇
Types & classes
107
Method
from
(bytes: [u8; SIZE])
ssh-key/src/private/ecdsa.rs:100
Method
from
(key: Ed25519PrivateKey)
ssh-key/src/private/ed25519.rs:104
Method
from_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
Method
from_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
Method
from_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
Method
from_bytes
Parse a raw binary OpenSSH certificate. # Errors Returns [`Error::Encoding`] in the event of an encoding error.
ssh-key/src/certificate.rs:198
Method
from_bytes
(bytes: &[u8; Self::BYTE_SIZE])
ssh-key/src/private/ed25519.rs:33
Method
from_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
Method
from_iter
(iter: T)
ssh-key/src/certificate/options_map.rs:119
Method
from_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
Method
from_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
Method
from_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
Method
from_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
Method
from_positive_bytes
(mut bytes: &[u8])
ssh-encoding/src/mpint.rs:68
Function
from_positive_bytes_strips_leading_zeroes
()
ssh-encoding/src/mpint.rs:288
Method
from_ppk
(ppk: impl AsRef<str>, passphrase: Option<String>)
ssh-key/src/private.rs:250
Method
from_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
Method
from_seed
(seed: &[u8; Ed25519PrivateKey::BYTE_SIZE])
ssh-key/src/private/ed25519.rs:169
Method
from_str
(ciphername: &str)
ssh-cipher/src/lib.rs:492
Method
from_str
(s: &str)
ssh-key/src/private.rs:1047
Method
from_str
(s: &str)
ssh-key/src/comment.rs:61
Method
from_str
(line: &str)
ssh-key/src/known_hosts.rs:159
Method
from_str
(line: &str)
ssh-key/src/authorized_keys.rs:153
Method
from_str
(s: &str)
ssh-key/src/public.rs:474
Method
from_str
(s: &str)
ssh-key/src/sshsig.rs:388
Method
from_str
(id: &str)
ssh-key/src/fingerprint.rs:197
Method
from_str
(s: &str)
ssh-key/src/certificate.rs:565
Method
from_str
(id: &str)
ssh-key/src/algorithm.rs:303
Method
from_str
(id: &str)
ssh-key/src/algorithm/name.rs:86
Function
full_line_hashed
()
ssh-key/src/known_hosts.rs:366
Function
generation
()
ssh-key/src/fingerprint/randomart.rs:108
Method
hash
(&self, state: &mut H)
ssh-key/src/public/dsa.rs:107
Method
hash
(&self, state: &mut H)
ssh-key/src/public/rsa.rs:96
Method
host_patterns
(&self)
ssh-key/src/known_hosts.rs:130
Function
implicit
()
ssh-derive/src/decode/field.rs:303
Function
invalid_algorithm_name
()
ssh-key/tests/algorithm_name.rs:23
Method
iqmp
(&self)
ssh-key/src/private/rsa.rs:59
Method
is_bcrypt
(&self)
ssh-key/src/kdf.rs:139
Method
is_dsa
(self)
ssh-key/src/algorithm.rs:257
Method
is_dsa
(&self)
ssh-key/src/public/key_data.rs:182
Method
is_dsa
(&self)
ssh-key/src/private/keypair.rs:172
Method
is_ecdsa
(self)
ssh-key/src/algorithm.rs:263
Method
is_ecdsa
(&self)
ssh-key/src/public/key_data.rs:189
Method
is_ecdsa
(&self)
ssh-key/src/private/keypair.rs:179
Method
is_ed25519
(self)
ssh-key/src/algorithm.rs:269
Method
is_ed25519
(&self)
ssh-key/src/public/key_data.rs:195
Method
is_ed25519
(&self)
ssh-key/src/private/keypair.rs:185
Method
is_encrypted
(&self)
ssh-key/src/private/keypair.rs:192
Method
is_host
(self)
ssh-key/src/certificate/cert_type.rs:22
Method
is_none
(self)
ssh-key/src/algorithm.rs:546
Method
is_other
(&self)
ssh-key/src/public/key_data.rs:222
Method
is_other
(&self)
ssh-key/src/private/keypair.rs:227
Method
is_rsa
(self)
ssh-key/src/algorithm.rs:275
Method
is_rsa
(&self)
ssh-key/src/public/key_data.rs:202
Method
is_rsa
(&self)
ssh-key/src/private/keypair.rs:206
Method
is_sha256
(self)
ssh-key/src/fingerprint.rs:137
Method
is_sha512
(self)
ssh-key/src/fingerprint.rs:143
Method
is_sk_ecdsa_p256
(&self)
ssh-key/src/private/keypair.rs:213
Method
is_sk_ed25519
(&self)
ssh-key/src/private/keypair.rs:220
Method
is_supported
(cipher: Cipher)
ssh-cipher/src/block_cipher.rs:81
Method
is_supported
(cipher: Cipher)
ssh-cipher/src/block_cipher/aes.rs:63
Method
is_user
(self)
ssh-key/src/certificate/cert_type.rs:28
Method
key_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
Method
key_size
(&self)
ssh-key/src/public/rsa.rs:68
Method
key_size
(&self)
ssh-key/src/private/rsa.rs:168
Method
label
(&self)
ssh-encoding/src/label.rs:59
Function
mac_computation_with_aad
()
ssh-cipher/src/chacha20poly1305.rs:274
Method
marker
(&self)
ssh-key/src/known_hosts.rs:124
Function
multiple_host_patterns
()
ssh-key/src/known_hosts.rs:338
Method
new
Create a new [`SequenceField`] from the input [`Field`].
ssh-derive/src/decode/field.rs:22
Method
new
(ciphername: &str)
ssh-cipher/src/lib.rs:170
Method
new
(key: &ChaChaKey)
ssh-cipher/src/chacha20poly1305.rs:116
Method
new
Initialize state for a particular block cipher mode of operation.
ssh-cipher/src/block_cipher/state.rs:16
Method
new
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
Method
new
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
Method
new
(label: &str)
ssh-encoding/src/label.rs:49
Method
new
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
Method
new
Create a new PEM reader which autodetects the line width of the input.
ssh-encoding/src/pem/reader.rs:17
Method
new
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
Method
new
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
Method
new
(key_data: KeypairData, comment: impl Into<Comment>)
ssh-key/src/private.rs:215
Method
new
(mut ppk: PpkWrapper, passphrase: Option<String>)
ssh-key/src/ppk.rs:347
Method
new
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
Method
new
(algorithm: KdfAlg, rng: &mut R)
ssh-key/src/kdf.rs:48
Method
new
(input: &'a str)
ssh-key/src/known_hosts.rs:56
Method
new
(input: &'a str)
ssh-key/src/authorized_keys.rs:48
Method
new
()
ssh-key/src/dot_ssh.rs:25
Method
new
(key_data: KeyData, comment: impl Into<Comment>)
ssh-key/src/public.rs:114
Method
new
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
Method
new
(algorithm: HashAlg, public_key: &public::KeyData)
ssh-key/src/fingerprint.rs:63
Method
new
Decode algorithm from the given string identifier. # Supported algorithms - `ecdsa-sha2-nistp256` - `ecdsa-sha2-nistp384` - `ecdsa-sha2-nistp521` - `
ssh-key/src/algorithm.rs:146
Method
new
(ec_point: EcdsaNistP256PublicKey, application: impl Into<String>)
ssh-key/src/public/sk.rs:36
Method
new
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
Method
new
(key: Vec<u8>, algorithm: Algorithm)
ssh-key/src/public/opaque.rs:30
Method
new
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
Method
new
()
ssh-key/src/certificate/options_map.rs:18
Method
new
(secs: u64)
ssh-key/src/certificate/unix_time.rs:42
Method
new
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
Method
new
Create new "randomart" from the given fingerprint.
ssh-key/src/fingerprint/randomart.rs:30
Method
new
Create a new algorithm identifier. # Errors Returns [`LabelError`] in the event the identifier is invalid.
ssh-key/src/algorithm/name.rs:43
← previous
next →
601–700 of 877, ranked by callers