Skip to main content

Crate ssh_encoding_fork_arti

Crate ssh_encoding_fork_arti 

Source
Expand description

§RustCrypto: SSH Encoding

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Documentation

§THIS IS A FORK

This version of SSH is a fork based on the ssh-key/v0.6.7 tag of the mainline repo. It contains some important features we need for arti-relay, that are not yet part of a stable release:

  • a bug fix without which we can’t convert deserialized RSA keys to their rsa counterparts: https://github.com/RustCrypto/SSH/pull/318
  • a patch for allowing insecure (< 1024 bits long) RSA keys (needed because the relay KS_relayid_rsa identity keys are 1024 bits long): https://github.com/RustCrypto/SSH/pull/412

We may add further additional features.

In other respects, this fork is likely to lag behind the upstream crate.

§About

Pure Rust implementation of SSH data type decoders/encoders as described in RFC4251.

§Minimum Supported Rust Version

This crate requires Rust 1.60 at a minimum.

We may change the MSRV in the future, but it will be accompanied by a minor version bump.

§License

Licensed under either of:

at your option.

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Re-exports§

pub use base64;
pub use pem;

Structs§

LabelError
Errors related to labels.
NestedReader
Reader type used by Reader::read_prefixed.

Enums§

Error
Error type.
LineEnding
Line endings: variants of newline characters that can be used with Base64.

Traits§

CheckedSum
Extension trait for providing checked Iterator::sum-like functionality.
Decode
Decoding trait.
DecodePem
Decoding trait for PEM documents.
Encode
Encoding trait.
EncodePem
Encoding trait for PEM documents.
Label
Labels for e.g. cryptographic algorithms.
Reader
Reader trait which decodes the binary SSH protocol serialization from various inputs.
Writer
Writer trait which encodes the SSH binary format to various output encodings.

Type Aliases§

Base64Reader
Constant-time Base64 reader implementation.
Base64Writer
Constant-time Base64 writer implementation.
Result
Result type with ssh-encoding crate’s Error as the error type.