Struct xstack_x509::Libp2pExtension
source · pub struct Libp2pExtension { /* private fields */ }Expand description
The public host key and the signature are ANS.1-encoded into the SignedKey data structure, which is carried in the libp2p Public Key Extension. SignedKey ::= SEQUENCE { publicKey OCTET STRING, signature OCTET STRING }
Implementations§
Trait Implementations§
source§impl AsExtension for Libp2pExtension
impl AsExtension for Libp2pExtension
source§impl AssociatedOid for Libp2pExtension
impl AssociatedOid for Libp2pExtension
source§const OID: ObjectIdentifier = P2P_OID
const OID: ObjectIdentifier = P2P_OID
The libp2p Public Key Extension is a X.509 extension with the Object Identifier 1.3.6.1.4.1.53594.1.1, allocated by IANA to the libp2p project at Protocol Labs.
source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for Libp2pExtension
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for Libp2pExtension
source§impl<'__der_lifetime> EncodeValue for Libp2pExtension
impl<'__der_lifetime> EncodeValue for Libp2pExtension
impl<'__der_lifetime> Sequence<'__der_lifetime> for Libp2pExtension
Auto Trait Implementations§
impl Freeze for Libp2pExtension
impl RefUnwindSafe for Libp2pExtension
impl Send for Libp2pExtension
impl Sync for Libp2pExtension
impl Unpin for Libp2pExtension
impl UnwindSafe for Libp2pExtension
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
source§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer.
source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.