pub struct Curve {
pub public_key_len: usize,
pub elem_scalar_seed_len: usize,
pub id: CurveID,
check_private_key_bytes: fn(bytes: &[u8]) -> Result<(), Unspecified>,
generate_private_key: fn(rng: &dyn SecureRandom, _: &mut [u8]) -> Result<(), Unspecified>,
public_from_private: fn(public_out: &mut [u8], private_key: &Seed) -> Result<(), Unspecified>,
}
Fields§
§public_key_len: usize
§elem_scalar_seed_len: usize
§id: CurveID
§check_private_key_bytes: fn(bytes: &[u8]) -> Result<(), Unspecified>
§generate_private_key: fn(rng: &dyn SecureRandom, _: &mut [u8]) -> Result<(), Unspecified>
§public_from_private: fn(public_out: &mut [u8], private_key: &Seed) -> Result<(), Unspecified>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Curve
impl RefUnwindSafe for Curve
impl Send for Curve
impl Sync for Curve
impl Unpin for Curve
impl UnwindSafe for Curve
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