pub struct P256;Expand description
The P-256 curve.
Trait Implementations§
impl Copy for P256
Source§impl Curve for P256
impl Curve for P256
Source§const FIELD_BYTES: usize = 32
const FIELD_BYTES: usize = 32
Width of an encoded field element.
Source§const SCALAR_BYTES: usize = 32
const SCALAR_BYTES: usize = 32
Width of an encoded scalar.
Source§const ORDER_BITS: usize = 256
const ORDER_BITS: usize = 256
Bit length of the group order,
qlen in RFC 6979. Read moreSource§fn field_from_slice(bytes: &[u8]) -> Option<Fp>
fn field_from_slice(bytes: &[u8]) -> Option<Fp>
Decode a field element from exactly
Self::FIELD_BYTES bytes.Source§fn scalar_from_slice(bytes: &[u8]) -> Option<Fn>
fn scalar_from_slice(bytes: &[u8]) -> Option<Fn>
Decode a scalar from exactly
Self::SCALAR_BYTES bytes, rejecting a
non-canonical encoding.Source§impl EcdsaCurve for P256
impl EcdsaCurve for P256
Source§impl HasGeneratorTable for P256
impl HasGeneratorTable for P256
Auto Trait Implementations§
impl Freeze for P256
impl RefUnwindSafe for P256
impl Send for P256
impl Sync for P256
impl Unpin for P256
impl UnsafeUnpin for P256
impl UnwindSafe for P256
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