pub struct EcdsaCurveParams {
pub p_modulus: &'static [u8],
pub a_coefficient: &'static [u8],
pub a_coefficient_sign: u32,
pub b_coefficient: &'static [u8],
pub generator_x: &'static [u8],
pub generator_y: &'static [u8],
pub order: &'static [u8],
}Expand description
ECDSA/ECC curve parameters
Fields§
§p_modulus: &'static [u8]Prime field modulus p
a_coefficient: &'static [u8]Curve coefficient |a| (absolute value)
a_coefficient_sign: u32Sign of curve coefficient a (0 = positive, 1 = negative)
b_coefficient: &'static [u8]Curve coefficient b
generator_x: &'static [u8]Base point x-coordinate
generator_y: &'static [u8]Base point y-coordinate
order: &'static [u8]Curve order n
Implementations§
Trait Implementations§
Source§impl Clone for EcdsaCurveParams
impl Clone for EcdsaCurveParams
Source§fn clone(&self) -> EcdsaCurveParams
fn clone(&self) -> EcdsaCurveParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EcdsaCurveParams
impl RefUnwindSafe for EcdsaCurveParams
impl Send for EcdsaCurveParams
impl Sync for EcdsaCurveParams
impl Unpin for EcdsaCurveParams
impl UnwindSafe for EcdsaCurveParams
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