Struct PrivateSec1KeyDer
struct PrivateSec1KeyDer<'a>(_)
A Sec1-encoded plaintext private key; as specified in RFC 5915
Sec1 private keys are identified in PEM context as EC PRIVATE KEY and when stored in a
file usually use a .pem or .key extension. For more on PEM files, refer to the crate
documentation.
#
Implementations
impl PrivateSec1KeyDer<'_>
fn clone_key(self: &Self) -> PrivateSec1KeyDer<'static>Clone the private key to a
'staticvaluefn secret_sec1_der(self: &Self) -> &[u8]Yield the DER-encoded bytes of the private key
impl Debug for PrivateSec1KeyDer<'_>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl From for PrivateSec1KeyDer<'_>
fn from(vec: Vec<u8>) -> Self
impl Zeroize for PrivateSec1KeyDer<'static>
fn zeroize(self: &mut Self)
impl<'a> Eq for PrivateSec1KeyDer<'a>
impl<'a> Freeze for PrivateSec1KeyDer<'a>
impl<'a> From for PrivateSec1KeyDer<'a>
fn from(slice: &'a [u8]) -> Self
impl<'a> PartialEq for PrivateSec1KeyDer<'a>
fn eq(self: &Self, other: &PrivateSec1KeyDer<'a>) -> bool
impl<'a> RefUnwindSafe for PrivateSec1KeyDer<'a>
impl<'a> Send for PrivateSec1KeyDer<'a>
impl<'a> StructuralPartialEq for PrivateSec1KeyDer<'a>
impl<'a> Sync for PrivateSec1KeyDer<'a>
impl<'a> Unpin for PrivateSec1KeyDer<'a>
impl<'a> UnwindSafe for PrivateSec1KeyDer<'a>
impl<T> Any for PrivateSec1KeyDer<'a>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for PrivateSec1KeyDer<'a>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for PrivateSec1KeyDer<'a>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for PrivateSec1KeyDer<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> PemObject for PrivateSec1KeyDer<'a>
fn from_pem(kind: SectionKind, der: Vec<u8>) -> Option<T>
impl<T, U> Into for PrivateSec1KeyDer<'a>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for PrivateSec1KeyDer<'a>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for PrivateSec1KeyDer<'a>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>