#[repr(C)]pub struct ecc_key {
pub type_: c_int,
pub idx: c_int,
pub dp: *const ltc_ecc_set_type,
pub pubkey: ecc_point,
pub k: *mut c_void,
}
Expand description
An ECC key
Fields§
§type_: c_int
Type of key, PK_PRIVATE or PK_PUBLIC
idx: c_int
Index into the ltc_ecc_sets[] for the parameters of this curve; if -1, then this key is using user supplied curve in dp
dp: *const ltc_ecc_set_type
pointer to domain parameters; either points to NIST curves (identified by idx >= 0) or user supplied curve
pubkey: ecc_point
The public key
k: *mut c_void
The private key
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ecc_key
impl RefUnwindSafe for ecc_key
impl !Send for ecc_key
impl !Sync for ecc_key
impl Unpin for ecc_key
impl UnwindSafe for ecc_key
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