mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Stub remaining radix_51 functions with unimplemented!()
This commit is contained in:
parent
b515e43dfd
commit
75baefabeb
1 changed files with 16 additions and 0 deletions
16
src/field.rs
16
src/field.rs
|
|
@ -869,6 +869,10 @@ impl FieldElement {
|
|||
|
||||
FieldElement::reduce(&[h0, h1, h2, h3, h4, h5, h6, h7, h8, h9])
|
||||
}
|
||||
#[cfg(feature="radix_51")]
|
||||
pub fn multiply(&self, _rhs: &FieldElement) -> FieldElement {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[cfg(feature="radix_25_5")]
|
||||
fn square_inner(&self) -> [i64;10] {
|
||||
|
|
@ -910,6 +914,10 @@ impl FieldElement {
|
|||
|
||||
h
|
||||
}
|
||||
#[cfg(feature="radix_51")]
|
||||
fn square_inner(&self) -> [u128;5] {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
/// Calculates h = f*f. Can overlap h with f.
|
||||
///
|
||||
|
|
@ -926,6 +934,10 @@ impl FieldElement {
|
|||
pub fn square(&self) -> FieldElement {
|
||||
FieldElement::reduce(&self.square_inner())
|
||||
}
|
||||
#[cfg(feature="radix_51")]
|
||||
pub fn square(&self) -> FieldElement {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
/// Square this field element and multiply the result by 2.
|
||||
///
|
||||
|
|
@ -951,6 +963,10 @@ impl FieldElement {
|
|||
}
|
||||
FieldElement::reduce(&coeffs)
|
||||
}
|
||||
#[cfg(feature="radix_51")]
|
||||
pub fn square2(&self) -> FieldElement {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[allow(dead_code)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue