Struct gnunet_sys::EphemeralKeyMessage[][src]

#[repr(C, packed)]pub struct EphemeralKeyMessage {
    pub header: GNUNET_MessageHeader,
    pub sender_status: i32,
    pub signature: GNUNET_CRYPTO_EddsaSignature,
    pub purpose: GNUNET_CRYPTO_EccSignaturePurpose,
    pub creation_time: GNUNET_TIME_AbsoluteNBO,
    pub expiration_time: GNUNET_TIME_AbsoluteNBO,
    pub ephemeral_key: GNUNET_CRYPTO_EcdhePublicKey,
    pub origin_identity: GNUNET_PeerIdentity,
}

Message transmitted with the signed ephemeral key of a peer. The session key is then derived from the two ephemeral keys (ECDHE).

Fields

header: GNUNET_MessageHeader

Message type is #GNUNET_MESSAGE_TYPE_CORE_EPHEMERAL_KEY.

sender_status: i32

Status of the sender (should be in enum PeerStateMachine), nbo.

signature: GNUNET_CRYPTO_EddsaSignature

An ECC signature of the @e origin_identity asserting the validity of the given ephemeral key.

purpose: GNUNET_CRYPTO_EccSignaturePurpose

Information about what is being signed.

creation_time: GNUNET_TIME_AbsoluteNBO

At what time was this key created (beginning of validity).

expiration_time: GNUNET_TIME_AbsoluteNBO

When does the given ephemeral key expire (end of validity).

ephemeral_key: GNUNET_CRYPTO_EcdhePublicKey

Ephemeral public ECC key.

origin_identity: GNUNET_PeerIdentity

Public key of the signing peer (persistent version, not the ephemeral public key).

Trait Implementations

impl Clone for EphemeralKeyMessage[src]

impl Copy for EphemeralKeyMessage[src]

impl Debug for EphemeralKeyMessage[src]

Auto Trait Implementations

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, 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.