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
new
( public: public::SkEcdsaSha2NistP256, flags: u8, key_handle: impl Into<Vec<u8>>,
ssh-key/src/private/sk.rs:34
Method
new
Create a new DSA private key given the value `x`. # Errors Returns [`Error::FormatEncoding`] if `x` is negative.
ssh-key/src/private/dsa.rs:31
Method
new
(private_key: Vec<u8>, public: OpaquePublicKey)
ssh-key/src/private/opaque.rs:35
Method
new
Create a new RSA private key with the following components: - `d`: RSA private exponent. - `iqmp`: CRT coefficient: `(inverse of q) mod p`. - `p`: Fi
ssh-key/src/private/rsa.rs:43
Method
new_certificate
Decode algorithm from the given string identifier as used by the OpenSSH certificate format. OpenSSH certificate algorithms end in `*-cert-v01@openss
ssh-key/src/algorithm.rs:171
Method
new_from_slice
(slice: &[u8])
ssh-cipher/src/block_cipher.rs:77
Method
new_from_slice
Create a new AES block cipher instance. Supports `key` whose length is 16-bytes (128-bit), 24-bytes (192-bits), or 32-bytes (256-bits). # Errors Ret
ssh-cipher/src/block_cipher/aes.rs:35
Method
new_from_slice
Initialize state for a particular block cipher mode of operation, with the initialization vector provided as a slice. # Errors Returns [`Error::Lengt
ssh-cipher/src/block_cipher/state.rs:33
Function
new_over_max_secs_returns_error
()
ssh-key/src/certificate/unix_time.rs:148
Function
new_sk_ecdsa_p256
()
ssh-key/tests/public_key.rs:308
Function
new_sk_ed25519_openssh
()
ssh-key/tests/public_key.rs:349
Method
new_v2
()
ssh-key/src/ppk.rs:31
Method
new_v3
(algorithm: &str, ppk: &PpkWrapper)
ssh-key/src/ppk.rs:35
Function
new_with_forever_secs_is_ok
()
ssh-key/src/certificate/unix_time.rs:153
Function
new_with_max_secs
()
ssh-key/src/certificate/unix_time.rs:143
Method
new_with_random_nonce
( rng: &mut impl CryptoRng, public_key: impl Into<public::KeyData>, valid_after: u64,
ssh-key/src/certificate/builder.rs:154
Function
new_with_validity_times
()
ssh-key/tests/certificate_builder.rs:192
Method
new_with_validity_times
( nonce: impl Into<Vec<u8>>, public_key: impl Into<public::KeyData>, valid_after: Syst
ssh-key/src/certificate/builder.rs:133
Method
nonce
(&self)
ssh-key/src/certificate.rs:270
Method
now
()
ssh-key/src/certificate/unix_time.rs:77
Function
options_comma_delimited
()
ssh-key/src/authorized_keys.rs:379
Function
options_comma_delimited_quoted
()
ssh-key/src/authorized_keys.rs:387
Function
options_empty
()
ssh-key/src/authorized_keys.rs:355
Function
options_invalid_character
()
ssh-key/src/authorized_keys.rs:395
Function
options_no_comma
()
ssh-key/src/authorized_keys.rs:360
Function
options_no_comma_quoted
()
ssh-key/src/authorized_keys.rs:367
Method
other
(&self)
ssh-key/src/private/keypair.rs:162
Method
p
(&self)
ssh-key/src/private/rsa.rs:65
Function
paramiko_ecdsa_key
()
ssh-key/tests/private_key.rs:728
Function
path_round_trip
()
ssh-key/tests/dot_ssh.rs:14
Method
peek
Call the provided function with an ephemeral [`Decryptor`] state which will be reset upon completion, returning the result of the function.
ssh-cipher/src/block_cipher/decryptor.rs:46
Method
placeholder
Placeholder signature used by the certificate builder. This is guaranteed to generate an error if anything attempts to encode it.
ssh-key/src/signature.rs:137
Method
private
(&self)
ssh-key/src/private/rsa.rs:180
Function
private_key_with_fingerprint
()
ssh-key/tests/dot_ssh.rs:27
Function
private_keys
()
ssh-key/tests/dot_ssh.rs:21
Method
public
(&self)
ssh-key/src/private/dsa.rs:181
Method
public
(&self)
ssh-key/src/private/rsa.rs:174
Method
public_key
(&self)
ssh-key/src/private.rs:601
Method
public_key
(&self)
ssh-key/src/known_hosts.rs:136
Method
public_key
(&self)
ssh-key/src/authorized_keys.rs:122
Method
public_key
(&self)
ssh-key/src/certificate.rs:276
Method
public_key_bytes
(&self)
ssh-key/src/private/ecdsa.rs:278
Function
public_key_with_fingerprint
()
ssh-key/tests/dot_ssh.rs:44
Function
public_keys
()
ssh-key/tests/dot_ssh.rs:38
Function
public_keys_are_hashable
()
ssh-key/tests/public_key.rs:435
Method
q
(&self)
ssh-key/src/private/rsa.rs:71
Method
random
(rng: &mut R, algorithm: Algorithm)
ssh-key/src/private.rs:611
Method
random
(rng: &mut R)
ssh-key/src/private/dsa.rs:163
Method
random
(rng: &mut R, bit_size: usize)
ssh-key/src/private/rsa.rs:153
Method
random
(rng: &mut R, curve: EcdsaCurve)
ssh-key/src/private/ecdsa.rs:222
Method
random
(rng: &mut R)
ssh-key/src/private/ed25519.rs:25
Function
read_example_file
()
ssh-key/tests/known_hosts.rs:9
Function
read_example_file
()
ssh-key/tests/authorized_keys.rs:9
Method
read_file
(path: impl AsRef<Path>)
ssh-key/src/known_hosts.rs:68
Method
read_file
(path: impl AsRef<Path>)
ssh-key/src/authorized_keys.rs:61
Method
read_file
(path: &Path)
ssh-key/src/certificate.rs:230
Method
read_openssh
(reader: &mut impl Read)
ssh-key/src/private.rs:403
Method
read_openssh
(reader: &mut impl Read)
ssh-key/src/public.rs:318
Method
read_openssh_file
(path: impl AsRef<Path>)
ssh-key/src/private.rs:414
Method
read_openssh_file
(path: impl AsRef<Path>)
ssh-key/src/public.rs:329
Function
reject_certificate_with_future_valid_after
()
ssh-key/tests/certificate.rs:400
Function
reject_certificate_with_invalid_signature
()
ssh-key/tests/certificate.rs:372
Function
reject_certificate_with_untrusted_ca
()
ssh-key/tests/certificate.rs:380
Function
reject_ed25519_certificate_with_invalid_signature
()
ssh-key/tests/certificate.rs:349
Function
reject_expired_certificate
()
ssh-key/tests/certificate.rs:392
Function
reject_extra_leading_zeroes
()
ssh-encoding/src/mpint.rs:269
Function
reject_oversize_usize
()
ssh-encoding/tests/decode.rs:48
Method
reserved
(&self)
ssh-key/src/sshsig.rs:291
Function
round_trip
()
ssh-cipher/tests/lib.rs:7
Function
round_trip_non_utf8_comment_openssh
()
ssh-key/tests/private_key.rs:602
Function
round_trip_rsa_3072
()
ssh-key/tests/private_key.rs:564
Method
rsa
(&self)
ssh-key/src/private/keypair.rs:132
Function
rsa_sign_and_verify
()
ssh-key/tests/certificate_builder.rs:134
Method
serial
Set certificate serial number. Default: `0`. # Errors Returns [`Error::CertificateFieldInvalid`] if called multiple times.
ssh-key/src/certificate/builder.rs:171
Method
serialize
(&self, serializer: S)
ssh-key/src/public.rs:505
Method
serialize
(&self, serializer: S)
ssh-key/src/sshsig.rs:462
Method
serialize
(&self, serializer: S)
ssh-key/src/fingerprint.rs:231
Method
serialize
(&self, serializer: S)
ssh-key/src/certificate.rs:598
Method
set_comment
(&mut self, comment: impl Into<Comment>)
ssh-key/src/private.rs:641
Method
set_comment
Set the comment on this certificate.
ssh-key/src/certificate.rs:260
Method
sha256
(self)
ssh-key/src/fingerprint.rs:119
Method
sha512
(self)
ssh-key/src/fingerprint.rs:128
Method
sign
(&self, namespace: &str, hash_alg: HashAlg, msg: &[u8])
ssh-key/src/private.rs:358
Method
sign
Sign the certificate using the provided signer type. The [`PrivateKey`] type can be used as a signer. # Errors - Returns [`Error::CertificateFieldIn
ssh-key/src/certificate/builder.rs:306
Function
sign_and_verify_ed25519
()
ssh-key/src/signature.rs:998
Function
sign_and_verify_rsa_sha1
()
ssh-key/src/signature.rs:1024
Method
sign_digest
( &self, namespace: &str, digest: D, )
ssh-key/src/private.rs:371
Method
sign_digest
Sign the given message digest with the provided signing key. # Errors - Returns [`Error::AlgorithmUnsupported`] if this signing key's algorithm is un
ssh-key/src/sshsig.rs:142
Function
sign_dsa
()
ssh-key/tests/sshsig.rs:176
Function
sign_ecdsa_p256
()
ssh-key/tests/sshsig.rs:219
Function
sign_ed25519
()
ssh-key/tests/sshsig.rs:246
Method
sign_prehash
( &self, namespace: &str, hash_alg: HashAlg, prehash: &[u8], )
ssh-key/src/private.rs:388
Method
sign_prehash
Sign the given prehashed message digest with the provided signing key. # Errors - Returns [`Error::AlgorithmUnsupported`] if this signing key's algor
ssh-key/src/sshsig.rs:163
Function
sign_rsa
()
ssh-key/tests/sshsig.rs:268
Method
signature
(&self)
ssh-key/src/sshsig.rs:309
Method
signature
(&self)
ssh-key/src/certificate.rs:383
Method
signature_bytes
(&self)
ssh-key/src/sshsig.rs:315
Method
signature_key
(&self)
ssh-key/src/certificate.rs:376
Method
signed_data
Get the raw "enveloped" message over which the signature for a given input message is computed. This is a low-level function intended for uses cases
ssh-key/src/sshsig.rs:198
Method
signed_data_for_prehash
Get the raw message over which the signature for a given message digest (passed as the `prehash` parameter) is computed. # Errors - Returns [`Error::
ssh-key/src/sshsig.rs:208
← previous
next →
701–800 of 877, ranked by callers