pub struct FutureExtension<P: FieldParameters> { /* private fields */ }Expand description
Placeholder implementation for future cryptographic extensions.
This struct serves as a stub for cryptographic extensions that have not yet been implemented. It provides the basic structure and interface that future extensions will follow, allowing the API to be designed ahead of full implementation.
§Type Parameters
P: The field parameters defining the mathematical field for operations
§Note
This is a placeholder that returns NotImplemented errors for all operations.
Real extensions should implement meaningful cryptographic algorithms.
Implementations§
Source§impl<P: FieldParameters> FutureExtension<P>
impl<P: FieldParameters> FutureExtension<P>
Trait Implementations§
Source§impl<P: Clone + FieldParameters> Clone for FutureExtension<P>
impl<P: Clone + FieldParameters> Clone for FutureExtension<P>
Source§fn clone(&self) -> FutureExtension<P>
fn clone(&self) -> FutureExtension<P>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<P: FieldParameters> CryptoExtension for FutureExtension<P>
Available on crate feature alloc only.
impl<P: FieldParameters> CryptoExtension for FutureExtension<P>
alloc only.Source§fn custom_operation(&self, _input: &[u8]) -> Result<Vec<u8>, MathError>
fn custom_operation(&self, _input: &[u8]) -> Result<Vec<u8>, MathError>
Placeholder implementation that always returns NotImplemented.
This method serves as a stub for future cryptographic operations. Real implementations should perform meaningful cryptographic computations on the input data using field arithmetic.
§Arguments
_input- Ignored input data (placeholder parameter)
§Returns
Always returns Err(MathError::NotImplemented) as this is a placeholder
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Returns the name identifier for this extension.
§Returns
The static string “FutureExtension” identifying this placeholder implementation
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Source§impl<P: Debug + FieldParameters> Debug for FutureExtension<P>
impl<P: Debug + FieldParameters> Debug for FutureExtension<P>
Source§impl<P: FieldParameters> Default for FutureExtension<P>
Available on crate feature alloc only.
impl<P: FieldParameters> Default for FutureExtension<P>
alloc only.Source§fn default() -> Self
fn default() -> Self
Creates a default placeholder cryptographic extension.
This implementation allows FutureExtension to be used with Default::default(),
providing a convenient way to create placeholder extensions.
§Returns
A new FutureExtension instance equivalent to calling FutureExtension::new()