pub struct EcdsaFlex {}Expand description
Decode/Encode implementation for ECDSA public keys.
This is a flexible implementation, it will try to decode the key assuming
it is PEM encoded, if the decode fails it will then try to decode it
assuming it’s Hex encoded.
The official TUF specification suggests ECDSA keys to be PEM encoded,
however the go-tuf implementation encodes them as Hex numbers.
This flexible decoder tries to cover both cases in a transparent way.
Trait Implementations§
impl Copy for EcdsaFlex
Auto Trait Implementations§
impl Freeze for EcdsaFlex
impl RefUnwindSafe for EcdsaFlex
impl Send for EcdsaFlex
impl Sync for EcdsaFlex
impl Unpin for EcdsaFlex
impl UnwindSafe for EcdsaFlex
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