pub struct P256Signature {
pub r: P256Scalar,
pub s: P256Scalar,
}Expand description
ECDSA/P-256 (secp256r1) signature: canonical (r, s), each in [1, n).
Signatures produced by drivers are low-S normalized (s <= n/2), as TLS 1.3
requires. Verification accepts both low-S and high-S signatures.
Fields§
§r: P256Scalarr component.
s: P256Scalars component.
Trait Implementations§
Source§impl Clone for P256Signature
impl Clone for P256Signature
Source§fn clone(&self) -> P256Signature
fn clone(&self) -> P256Signature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for P256Signature
Source§impl Debug for P256Signature
impl Debug for P256Signature
impl Eq for P256Signature
Source§impl Format for P256Signaturewhere
P256Scalar: Format,
impl Format for P256Signaturewhere
P256Scalar: Format,
Source§impl PartialEq for P256Signature
impl PartialEq for P256Signature
impl StructuralPartialEq for P256Signature
Auto Trait Implementations§
impl Freeze for P256Signature
impl RefUnwindSafe for P256Signature
impl Send for P256Signature
impl Sync for P256Signature
impl Unpin for P256Signature
impl UnsafeUnpin for P256Signature
impl UnwindSafe for P256Signature
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