pub enum EllipticCurve {
P192,
P256,
}Expand description
Represents supported elliptic curves for cryptographic operations.
The methods that represent operations require the EccBackend to be started before use.
Variants§
Implementations§
Source§impl EllipticCurve
impl EllipticCurve
Source§impl EllipticCurve
impl EllipticCurve
Sourcepub fn affine_point_multiplication<'op>(
self,
k: &'op [u8],
px: &'op [u8],
py: &'op [u8],
) -> Result<EccBackendOperation<'op, AffinePointMultiplication>, KeyLengthMismatch>
pub fn affine_point_multiplication<'op>( self, k: &'op [u8], px: &'op [u8], py: &'op [u8], ) -> Result<EccBackendOperation<'op, AffinePointMultiplication>, KeyLengthMismatch>
Configures a new Base Point Multiplication operation with the given inputs, to be executed on EccBackend.
Outputs need to be assigned separately before executing the operation.
Sourcepub fn affine_point_verification<'op>(
self,
px: &'op [u8],
py: &'op [u8],
) -> Result<EccBackendOperation<'op, AffinePointVerification>, KeyLengthMismatch>
pub fn affine_point_verification<'op>( self, px: &'op [u8], py: &'op [u8], ) -> Result<EccBackendOperation<'op, AffinePointVerification>, KeyLengthMismatch>
Configures a new Base Point Verification operation with the given inputs, to be executed on EccBackend.
Outputs need to be assigned separately before executing the operation.
Sourcepub fn affine_point_verification_multiplication<'op>(
self,
k: &'op [u8],
px: &'op [u8],
py: &'op [u8],
) -> Result<EccBackendOperation<'op, AffinePointVerificationAndMultiplication>, KeyLengthMismatch>
pub fn affine_point_verification_multiplication<'op>( self, k: &'op [u8], px: &'op [u8], py: &'op [u8], ) -> Result<EccBackendOperation<'op, AffinePointVerificationAndMultiplication>, KeyLengthMismatch>
Configures a new Base Point Verification and Multiplication operation with the given inputs, to be executed on EccBackend.
Outputs need to be assigned separately before executing the operation.
Sourcepub fn jacobian_point_multiplication<'op>(
self,
k: &'op [u8],
px: &'op [u8],
py: &'op [u8],
) -> Result<EccBackendOperation<'op, JacobianPointMultiplication>, KeyLengthMismatch>
pub fn jacobian_point_multiplication<'op>( self, k: &'op [u8], px: &'op [u8], py: &'op [u8], ) -> Result<EccBackendOperation<'op, JacobianPointMultiplication>, KeyLengthMismatch>
Configures a new Jacobian Point Multiplication operation with the given inputs, to be executed on EccBackend.
Outputs need to be assigned separately before executing the operation.
Sourcepub fn jacobian_point_verification<'op>(
self,
qx: &'op [u8],
qy: &'op [u8],
qz: &'op [u8],
) -> Result<EccBackendOperation<'op, JacobianPointVerification>, KeyLengthMismatch>
pub fn jacobian_point_verification<'op>( self, qx: &'op [u8], qy: &'op [u8], qz: &'op [u8], ) -> Result<EccBackendOperation<'op, JacobianPointVerification>, KeyLengthMismatch>
Configures a new Jacobian Point Verification operation with the given inputs, to be executed on EccBackend.
Outputs need to be assigned separately before executing the operation.
Sourcepub fn affine_point_verification_jacobian_multiplication<'op>(
self,
k: &'op [u8],
px: &'op [u8],
py: &'op [u8],
) -> Result<EccBackendOperation<'op, AffinePointVerificationAndJacobianPointMultiplication>, KeyLengthMismatch>
pub fn affine_point_verification_jacobian_multiplication<'op>( self, k: &'op [u8], px: &'op [u8], py: &'op [u8], ) -> Result<EccBackendOperation<'op, AffinePointVerificationAndJacobianPointMultiplication>, KeyLengthMismatch>
Configures a new Base Point Verification + Jacobian Point Multiplication operation with the given inputs, to be executed on EccBackend.
Outputs need to be assigned separately before executing the operation.
Trait Implementations§
Source§impl Clone for EllipticCurve
Available on crate feature unstable only.
impl Clone for EllipticCurve
unstable only.Source§fn clone(&self) -> EllipticCurve
fn clone(&self) -> EllipticCurve
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EllipticCurve
Available on crate feature unstable only.
impl Debug for EllipticCurve
unstable only.Source§impl PartialEq for EllipticCurve
Available on crate feature unstable only.
impl PartialEq for EllipticCurve
unstable only.impl Copy for EllipticCurve
unstable only.impl Eq for EllipticCurve
unstable only.impl StructuralPartialEq for EllipticCurve
unstable only.Auto Trait Implementations§
impl Freeze for EllipticCurve
impl RefUnwindSafe for EllipticCurve
impl Send for EllipticCurve
impl Sync for EllipticCurve
impl Unpin for EllipticCurve
impl UnsafeUnpin for EllipticCurve
impl UnwindSafe for EllipticCurve
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)