Struct trust_dns_proto::rr::rdata::sshfp::SSHFP[][src]

pub struct SSHFP { /* fields omitted */ }

RFC 4255

3.1.  The SSHFP RDATA Format

   The RDATA for a SSHFP RR consists of an algorithm number, fingerprint
   type and the fingerprint of the public host key.

       1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |   algorithm   |    fp type    |                               /
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               /
       /                                                               /
       /                          fingerprint                          /
       /                                                               /
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

3.1.3.  Fingerprint

   The fingerprint is calculated over the public key blob as described
   in [7].

   The message-digest algorithm is presumed to produce an opaque octet
   string output, which is placed as-is in the RDATA fingerprint field.

Implementations

impl SSHFP[src]

pub fn new(
    algorithm: Algorithm,
    fingerprint_type: FingerprintType,
    fingerprint: Vec<u8>
) -> Self
[src]

Creates a new SSHFP record data.

Arguments

  • algorithm - the SSH public key algorithm.
  • fingerprint_type - the fingerprint type to use.
  • fingerprint - the fingerprint of the public key.

pub fn algorithm(&self) -> Algorithm[src]

The SSH public key algorithm.

pub fn fingerprint_type(&self) -> FingerprintType[src]

The fingerprint type to use.

pub fn fingerprint(&self) -> &[u8][src]

The fingerprint of the public key.

Trait Implementations

impl Clone for SSHFP[src]

impl Debug for SSHFP[src]

impl Display for SSHFP[src]

RFC 4255

3.2.  Presentation Format of the SSHFP RR

   The RDATA of the presentation format of the SSHFP resource record
   consists of two numbers (algorithm and fingerprint type) followed by
   the fingerprint itself, presented in hex, e.g.:

       host.example.  SSHFP 2 1 123456789abcdef67890123456789abcdef67890

   The use of mnemonics instead of numbers is not allowed.

impl Eq for SSHFP[src]

impl Hash for SSHFP[src]

impl PartialEq<SSHFP> for SSHFP[src]

impl StructuralEq for SSHFP[src]

impl StructuralPartialEq for SSHFP[src]

Auto Trait Implementations

impl RefUnwindSafe for SSHFP

impl Send for SSHFP

impl Sync for SSHFP

impl Unpin for SSHFP

impl UnwindSafe for SSHFP

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,