From 93edb223bbcbcbbed60762e8bf14d552d8a88579 Mon Sep 17 00:00:00 2001 From: Mike Hamburg Date: Thu, 2 Jul 2015 18:21:43 -0700 Subject: [PATCH] remove inverse from f_field.h --- src/include/field.h | 15 --------------- src/p25519/f_field.h | 1 - src/p448/f_field.h | 1 - src/p480/f_field.h | 1 - src/p521/f_field.h | 1 - 5 files changed, 19 deletions(-) diff --git a/src/include/field.h b/src/include/field.h index 9607e67..554ea0b 100644 --- a/src/include/field.h +++ b/src/include/field.h @@ -37,21 +37,6 @@ field_isr ( field_a_t a, const field_a_t x ); - -/** - * Returns 1/x. - * - * If x=0, returns 0. - * - * TODO: this is currently unused in Decaf, but I've left a decl - * for it because field_inverse is different (and simpler) than - * field_isqrt for 5-mod-8 fields. - */ -void -field_inverse ( - field_a_t a, - const field_a_t x -); /** * Square x, n times. diff --git a/src/p25519/f_field.h b/src/p25519/f_field.h index 54b6e9f..81af1fd 100644 --- a/src/p25519/f_field.h +++ b/src/p25519/f_field.h @@ -23,7 +23,6 @@ #define field_mulw p255_mulw #define field_bias p255_bias #define field_isr p255_isr -#define field_inverse p255_inverse #define field_weak_reduce p255_weak_reduce #define field_strong_reduce p255_strong_reduce #define field_serialize p255_serialize diff --git a/src/p448/f_field.h b/src/p448/f_field.h index f3180f7..cc06ab7 100644 --- a/src/p448/f_field.h +++ b/src/p448/f_field.h @@ -23,7 +23,6 @@ #define field_mulw p448_mulw #define field_bias p448_bias #define field_isr p448_isr -#define field_inverse p448_inverse #define field_weak_reduce p448_weak_reduce #define field_strong_reduce p448_strong_reduce #define field_serialize p448_serialize diff --git a/src/p480/f_field.h b/src/p480/f_field.h index ac178b0..1c94a98 100644 --- a/src/p480/f_field.h +++ b/src/p480/f_field.h @@ -23,7 +23,6 @@ #define field_mulw p480_mulw #define field_bias p480_bias #define field_isr p480_isr -#define field_inverse p480_inverse #define field_weak_reduce p480_weak_reduce #define field_strong_reduce p480_strong_reduce #define field_serialize p480_serialize diff --git a/src/p521/f_field.h b/src/p521/f_field.h index df4777f..ebbb666 100644 --- a/src/p521/f_field.h +++ b/src/p521/f_field.h @@ -23,7 +23,6 @@ #define field_mulw p521_mulw #define field_bias p521_bias #define field_isr p521_isr -#define field_inverse p521_inverse #define field_weak_reduce p521_weak_reduce #define field_strong_reduce p521_strong_reduce #define field_serialize p521_serialize