pub struct KeyInfo {
pub curve: EcCurve,
pub public_key: Vec<u8>,
pub pkcs8_der: Vec<u8>,
}Expand description
A minimal stand-in for the fields of *ecdsa.PrivateKey these tests
inspect, plus the PKCS#8 DER of the private key so self_sign can
actually sign with it.
Adaptation from Go: ca_test.go calls selfSign(key, ...) with a real
*ecdsa.PrivateKey it generated itself. The Rust port’s self_sign
generates a fresh key internally when given KeyInfo::default() (empty
pkcs8_der), so callers that don’t already have a key (like new_ca)
can just pass the default. See PORT_NOTES.md.
Fields§
§curve: EcCurve§public_key: Vec<u8>§pkcs8_der: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyInfo
impl RefUnwindSafe for KeyInfo
impl Send for KeyInfo
impl Sync for KeyInfo
impl Unpin for KeyInfo
impl UnsafeUnpin for KeyInfo
impl UnwindSafe for KeyInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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