pub struct EccBackendOperation<'op, O: EccOperation> { /* private fields */ }Expand description
An ECC operation that can be enqueued on the work queue.
Implementations§
Source§impl<'op, O: EccOperation> EccBackendOperation<'op, O>
impl<'op, O: EccOperation> EccBackendOperation<'op, O>
Sourcepub fn with_scalar_result(
self,
out: &'op mut [u8],
) -> Result<Self, OperationError>where
O: OperationReturnsScalar,
pub fn with_scalar_result(
self,
out: &'op mut [u8],
) -> Result<Self, OperationError>where
O: OperationReturnsScalar,
Designate a buffer for the scalar result of the operation.
Once the operation is processed, the result can be retrieved from the designated buffer.
§Errors
OperationError::ParameterLengthMismatch when out is not the correct size.
Sourcepub fn with_affine_point_result(
self,
px: &'op mut [u8],
py: &'op mut [u8],
) -> Result<Self, OperationError>where
O: OperationReturnsAffinePoint,
pub fn with_affine_point_result(
self,
px: &'op mut [u8],
py: &'op mut [u8],
) -> Result<Self, OperationError>where
O: OperationReturnsAffinePoint,
Designate buffers for the affine point result of the operation.
Once the operation is processed, the result can be retrieved from the designated buffers.
§Errors
OperationError::ParameterLengthMismatch when x or y are not the correct size.
Sourcepub fn with_jacobian_point_result(
self,
qx: &'op mut [u8],
qy: &'op mut [u8],
qz: &'op mut [u8],
) -> Result<Self, OperationError>where
O: OperationReturnsJacobianPoint,
pub fn with_jacobian_point_result(
self,
qx: &'op mut [u8],
qy: &'op mut [u8],
qz: &'op mut [u8],
) -> Result<Self, OperationError>where
O: OperationReturnsJacobianPoint,
Designate buffers for the Jacobian point result of the operation.
Once the operation is processed, the result can be retrieved from the designated buffers.
§Errors
OperationError::ParameterLengthMismatch when x, y, or z are not the correct size.
Sourcepub fn point_on_curve(&self) -> boolwhere
O: OperationVerifiesPoint,
pub fn point_on_curve(&self) -> boolwhere
O: OperationVerifiesPoint,
Returns whether the input point is on the curve.
The operation must be processed before this method returns a meaningful value.