MCPcopy Create free account

hub / github.com/RustCrypto/SSH / functions

Functions877 in github.com/RustCrypto/SSH

↓ 3 callersFunctionencode_keydata
(certificate_str: &str)
ssh-key/tests/certificate.rs:305
↓ 3 callersMethodencode_tbs
Encode the portion of the certificate "to be signed" by the CA (or to be verified against an existing CA signature)
ssh-key/src/certificate.rs:486
↓ 3 callersMethodencoded_key_data_len
Get the encoded length of this key data without a leading algorithm identifier.
ssh-key/src/public/key_data.rs:274
↓ 3 callersMethodencoded_len
(&self)
ssh-key/src/private.rs:897
↓ 3 callersMethodencoded_privatekey_comment_pair_len
Get the length of this private key when encoded with the given comment and padded using the padding size for the given cipher.
ssh-key/src/private.rs:760
↓ 3 callersMethodinto_bytes
(self)
ssh-key/src/private/ecdsa.rs:35
↓ 3 callersMethodis_empty
(&self)
ssh-key/src/authorized_keys.rs:237
↓ 3 callersMethodmode
Get the block mode the state was initialized with.
ssh-cipher/src/block_cipher/state.rs:38
↓ 3 callersMethodneeds_leading_zero
Does this private key need to be prefixed with a leading zero?
ssh-key/src/private/ecdsa.rs:40
↓ 3 callersMethodnext
(&mut self)
ssh-key/src/dot_ssh.rs:128
↓ 3 callersMethodread_byten
Decodes `[u8]` from `byte[n]` as described in [RFC4251 § 5]: > A byte represents an arbitrary 8-bit value (octet). Fixed length > data is sometimes
ssh-encoding/src/reader.rs:55
↓ 3 callersMethodsk_ecdsa_p256
(&self)
ssh-key/src/public/key_data.rs:133
↓ 3 callersMethodsk_ed25519
(&self)
ssh-key/src/public/key_data.rs:142
↓ 3 callersFunctionsplit_algorithm_id
Split a `name@domainname` algorithm string identifier into `(name, domainname)`.
ssh-key/src/algorithm/name.rs:101
↓ 3 callersMethodto_openssh
Encode OpenSSH certificate to a [`String`]. # Errors Returns [`Error::Encoding`] in the event of an encoding error.
ssh-key/src/certificate.rs:208
↓ 3 callersFunctiontry_derive_decode
(input: DeriveInput)
ssh-derive/src/decode.rs:9
↓ 3 callersFunctiontry_derive_encode
(input: DeriveInput)
ssh-derive/src/encode.rs:9
↓ 3 callersMethodvalidate
Validate that config options are well-formed.
ssh-key/src/authorized_keys.rs:289
↓ 3 callersFunctionvalidate_dsa
(key: PrivateKey)
ssh-key/tests/private_key.rs:132
↓ 3 callersFunctionvalidate_ecdsa_p256
(key: PrivateKey)
ssh-key/tests/private_key.rs:195
↓ 3 callersFunctionvalidate_ed25519
(key: PrivateKey)
ssh-key/tests/private_key.rs:347
↓ 2 callersMethodalgorithm
(self)
ssh-key/src/fingerprint.rs:84
↓ 2 callersMethodalgorithm
(&self)
ssh-key/src/public/key_data.rs:63
↓ 2 callersMethodalgorithm
Get the [`Algorithm`] for this private key. # Errors Returns [`Error::Encrypted`] if the private key is encrypted.
ssh-key/src/private/keypair.rs:69
↓ 2 callersMethodall_principals_valid
Mark this certificate as being valid for all principals. <div class="warning"> <b>Security Warning</b> Use this method with care! It generates "gold
ssh-key/src/certificate/builder.rs:234
↓ 2 callersMethodapply_asn1_type
Apply the ASN.1 type (if defined).
ssh-derive/src/decode/field.rs:131
↓ 2 callersMethodapply_default
Handle default value for a type.
ssh-derive/src/decode/field.rs:146
↓ 2 callersMethodas_bytes
(&self)
ssh-key/src/fingerprint.rs:110
↓ 2 callersMethodas_ref
(&self)
ssh-key/src/private/opaque.rs:145
↓ 2 callersMethodas_str
(self)
ssh-cipher/src/lib.rs:176
↓ 2 callersMethodas_str
(self)
ssh-key/src/certificate/field.rs:55
↓ 2 callersMethodblock_mode
(self)
ssh-cipher/src/lib.rs:460
↓ 2 callersFunctioncheck_signature_component_lengths
( keypair: &DsaKeypair, data: &[u8], r_len: usize, s_len: usiz
ssh-key/src/signature.rs:927
↓ 2 callersMethodcomment
(&self)
ssh-key/src/private.rs:559
↓ 2 callersMethodcomment
(&self)
ssh-key/src/public.rs:368
↓ 2 callersMethodcritical_option
Add a critical option to this certificate. Critical options must be recognized or the certificate must be rejected. # Errors Returns [`Error::Certif
ssh-key/src/certificate/builder.rs:246
↓ 2 callersMethodct_eq
(&self, other: &Self)
ssh-key/src/private.rs:788
↓ 2 callersMethodct_eq
(&self, other: &Self)
ssh-key/src/private/dsa.rs:59
↓ 2 callersMethodct_eq
(&self, other: &Self)
ssh-key/src/private/rsa.rs:77
↓ 2 callersMethodct_eq
(&self, other: &Self)
ssh-key/src/private/ecdsa.rs:112
↓ 2 callersMethodct_eq
(&self, other: &Self)
ssh-key/src/private/ed25519.rs:51
↓ 2 callersMethodcurve
(&self)
ssh-key/src/private/ecdsa.rs:268
↓ 2 callersMethodd
(&self)
ssh-key/src/private/rsa.rs:53
↓ 2 callersFunctiondecode_segment
Parse a segment of the public key.
ssh-key/src/public/ssh_format.rs:118
↓ 2 callersMethodderive_key_and_iv
( &self, cipher: Cipher, password: impl AsRef<[u8]>, )
ssh-key/src/kdf.rs:99
↓ 2 callersMethoddrain
Drain the given number of bytes from the reader, discarding them. # Errors Propagates errors returned from [`Reader::read`].
ssh-encoding/src/reader.rs:97
↓ 2 callersFunctionecdsa_sig_size
Returns Ok() if data holds an ecdsa signature with components of appropriate size according to curve.
ssh-key/src/signature.rs:152
↓ 2 callersMethodencode_pem
(&self, line_ending: LineEnding, out: &'o mut [u8])
ssh-encoding/src/pem/encode.rs:34
↓ 2 callersMethodencode_pem_string
(&self, line_ending: LineEnding)
ssh-encoding/src/pem/encode.rs:43
↓ 2 callersMethodencode_privatekey_comment_pair
Encode [`KeypairData`] along with its associated checkints, comment, and padding.
ssh-key/src/private.rs:735
↓ 2 callersMethodencrypt
( &self, rng: &mut R, password: impl AsRef<[u8]>, )
ssh-key/src/private.rs:485
↓ 2 callersMethodextension
Add an extension to this certificate. Extensions can be unrecognized without impacting the certificate. # Errors Returns [`Error::CertificateFieldIn
ssh-key/src/certificate/builder.rs:268
↓ 2 callersMethodfield_size
(self)
ssh-key/src/algorithm.rs:373
↓ 2 callersMethodhash_alg
(&self)
ssh-key/src/sshsig.rs:303
↓ 2 callersMethodincrement_counter
Increment the counter for counter mode.
ssh-cipher/src/block_cipher/state.rs:43
↓ 2 callersMethodinto_tokens
the field decoder to tokens.
ssh-derive/src/decode/field.rs:122
↓ 2 callersMethodis_certificate
(&self)
ssh-key/src/public/key_data.rs:229
↓ 2 callersMethodis_none
(&self)
ssh-key/src/kdf.rs:126
↓ 2 callersMethodis_some
(self)
ssh-cipher/src/lib.rs:258
↓ 2 callersMethodkey_and_iv_size
(self)
ssh-cipher/src/lib.rs:194
↓ 2 callersMethodkey_data
(&self)
ssh-key/src/private.rs:595
↓ 2 callersMethodkey_handle
(&self)
ssh-key/src/private/sk.rs:67
↓ 2 callersFunctionmake_sk_signed_data
(application: &str, flags_and_counter: &[u8], message: &[u8])
ssh-key/src/signature.rs:480
↓ 2 callersMethodother
(&self)
ssh-key/src/public/key_data.rs:152
↓ 2 callersFunctionp256_signature_from_openssh_bytes
(mut signature_bytes: &[u8])
ssh-key/src/signature.rs:588
↓ 2 callersMethodpadding_len
(self, input_size: usize)
ssh-cipher/src/lib.rs:230
↓ 2 callersMethodprivate
(&self)
ssh-key/src/private/dsa.rs:187
↓ 2 callersFunctionround_trip_test
(private_key: &str)
ssh-key/tests/private_key.rs:677
↓ 2 callersFunctionsplit_sk_signature
(signature: &Signature)
ssh-key/src/signature.rs:492
↓ 2 callersMethodto_bytes
(&self)
ssh-key/src/public.rs:191
↓ 2 callersMethodto_bytes
(self)
ssh-key/src/sshsig.rs:415
↓ 2 callersMethodtry_next
Attempt to parse the next comma-delimited option string.
ssh-key/src/authorized_keys.rs:295
↓ 2 callersFunctiontype_path
Create a [`Type::Path`].
ssh-derive/src/decode/field.rs:246
↓ 2 callersMethodunpadded_privatekey_comment_pair_len
Get the length of this private key when encoded with the given comment. This length is just the checkints, private key data, and comment sans any pad
ssh-key/src/private.rs:769
↓ 2 callersFunctionvalidate_algorithm_id
Check if the length of `id` is at most `n`, and that `id` only consists of ASCII characters.
ssh-key/src/algorithm/name.rs:92
↓ 2 callersMethodvalidate_at
Perform certificate validation. Checks for the following: - Specified Unix timestamp is within the certificate's valid range - Certificate's signatu
ssh-key/src/certificate.rs:434
↓ 2 callersMethodverify
(&self, message: &[u8], signature: &Signature)
ssh-key/src/signature.rs:302
↓ 2 callersMethodverify_prehash
( &self, namespace: &str, prehash: &[u8], signature: &SshSig, )
ssh-key/src/public.rs:295
↓ 1 callersMethodapply_context_specific
Make this field context-specific.
ssh-derive/src/decode/field.rs:205
↓ 1 callersMethodas_mpint
(&self)
ssh-key/src/private/dsa.rs:47
↓ 1 callersMethodas_ref
(&self)
ssh-key/src/known_hosts.rs:227
↓ 1 callersMethodas_str
(&self)
ssh-key/src/algorithm/name.rs:52
↓ 1 callersFunctionbase64_len_approx
(input_len: usize)
ssh-key/src/public/ssh_format.rs:113
↓ 1 callersMethodcertificate_type
(&self)
ssh-key/src/algorithm/name.rs:59
↓ 1 callersMethodcheckint
Compute a deterministic "checkint" for this private key. This is a sort of primitive pseudo-MAC used by the OpenSSH key format. TODO(tarcieri): true
ssh-key/src/private/keypair.rs:235
↓ 1 callersMethodcomment
(&self)
ssh-key/src/certificate.rs:255
↓ 1 callersMethodct_eq
(&self, other: &Self)
ssh-encoding/src/mpint.rs:129
↓ 1 callersMethodct_eq
(&self, other: &Self)
ssh-key/src/private/keypair.rs:298
↓ 1 callersMethoddecode_comment
(&mut self, reader: &mut impl Reader)
ssh-key/src/public.rs:396
↓ 1 callersFunctiondecode_private_key_as
( reader: &mut impl Reader, public: PublicKey, algorithm: Algorithm, )
ssh-key/src/ppk.rs:458
↓ 1 callersFunctiondecode_segment_str
Parse a segment of the public key as a `&str`.
ssh-key/src/public/ssh_format.rs:154
↓ 1 callersMethoddecrypt
(self, key: &[u8], iv: &[u8], buffer: &mut [u8], tag: Option<Tag>)
ssh-cipher/src/lib.rs:268
↓ 1 callersMethoddecrypt
(mut self, aad: &[u8], buffer: InOutBuf<'_, '_, u8>, tag: &Tag)
ssh-cipher/src/chacha20poly1305.rs:195
↓ 1 callersMethoddecrypt_block
(&mut self, block: &mut Block<Self>)
ssh-cipher/src/block_cipher/decryptor.rs:62
↓ 1 callersMethoddecrypt_blocks
(&self, blocks: &mut [Block])
ssh-cipher/src/block_cipher/aes.rs:77
↓ 1 callersMethodderive
(&self, password: &[u8], output: &mut [u8])
ssh-key/src/ppk.rs:72
↓ 1 callersMethodderive
(&self, password: impl AsRef<[u8]>, output: &mut [u8])
ssh-key/src/kdf.rs:81
↓ 1 callersMethodderive_mac_key
(&self, kdf: &Kdf, password: &str)
ssh-key/src/ppk.rs:143
↓ 1 callersMethodec_point
(&self)
ssh-key/src/public/sk.rs:45
↓ 1 callersMethoded25519
(&self)
ssh-key/src/public/key_data.rs:104
← previousnext →101–200 of 877, ranked by callers