Typo fix; Negateable → Negatable.

* Fixup on #22.
This commit is contained in:
Isis Lovecruft 2017-02-21 04:15:09 +00:00
parent 9154e59ec1
commit 51f59565f5
Failed to extract signature
3 changed files with 4 additions and 4 deletions

View file

@ -87,7 +87,7 @@ use field::FieldElement;
use scalar::Scalar;
use util::bytes_equal_ct;
use util::CTAssignable;
use util::CTNegateable;
use util::CTNegatable;
// ------------------------------------------------------------------------
// Compressed points

View file

@ -803,7 +803,7 @@ impl FieldElement {
mod test {
use field::*;
use test::Bencher;
use util::CTNegateable;
use util::CTNegatable;
#[bench]
fn bench_fieldelement_a_mul_a(b: &mut Bencher) {

View file

@ -25,13 +25,13 @@ pub trait CTAssignable {
///
/// Note: it is not necessary to implement this trait, as a generic
/// implementation is provided.
pub trait CTNegateable
pub trait CTNegatable
{
/// Conditionally negate an element if `choice == 1u8`.
fn conditional_negate(&mut self, choice: u8);
}
impl<T> CTNegateable for T
impl<T> CTNegatable for T
where T: CTAssignable, for<'a> &'a T: Neg<Output=T>
{
fn conditional_negate(&mut self, choice: u8) {