| @@ -763,7 +763,7 @@ decaf_bool_t API_NS(point_eq) ( const point_t p, const point_t q ) { | |||||
| gf_mul ( b, q->y, p->x ); | gf_mul ( b, q->y, p->x ); | ||||
| mask_t succ = gf_eq(a,b); | mask_t succ = gf_eq(a,b); | ||||
| #if (COFACTOR == 8) && IMAGINE_TWIST | |||||
| #if (COFACTOR == 8) | |||||
| gf_mul ( a, p->y, q->y ); | gf_mul ( a, p->y, q->y ); | ||||
| gf_mul ( b, q->x, p->x ); | gf_mul ( b, q->x, p->x ); | ||||
| #if !(IMAGINE_TWIST) | #if !(IMAGINE_TWIST) | ||||
| @@ -763,7 +763,7 @@ decaf_bool_t API_NS(point_eq) ( const point_t p, const point_t q ) { | |||||
| gf_mul ( b, q->y, p->x ); | gf_mul ( b, q->y, p->x ); | ||||
| mask_t succ = gf_eq(a,b); | mask_t succ = gf_eq(a,b); | ||||
| #if (COFACTOR == 8) && IMAGINE_TWIST | |||||
| #if (COFACTOR == 8) | |||||
| gf_mul ( a, p->y, q->y ); | gf_mul ( a, p->y, q->y ); | ||||
| gf_mul ( b, q->x, p->x ); | gf_mul ( b, q->x, p->x ); | ||||
| #if !(IMAGINE_TWIST) | #if !(IMAGINE_TWIST) | ||||
| @@ -318,7 +318,7 @@ public: | |||||
| */ | */ | ||||
| inline explicit Point(const FixedBlock<SER_BYTES> &buffer, bool allow_identity=true) | inline explicit Point(const FixedBlock<SER_BYTES> &buffer, bool allow_identity=true) | ||||
| /*throw(CryptoException)*/ { | /*throw(CryptoException)*/ { | ||||
| if (DECAF_SUCCESS != decode(buffer,allow_identity ? DECAF_TRUE : DECAF_FALSE)) { | |||||
| if (DECAF_SUCCESS != decode(buffer,allow_identity)) { | |||||
| throw CryptoException(); | throw CryptoException(); | ||||
| } | } | ||||
| } | } | ||||
| @@ -318,7 +318,7 @@ public: | |||||
| */ | */ | ||||
| inline explicit Point(const FixedBlock<SER_BYTES> &buffer, bool allow_identity=true) | inline explicit Point(const FixedBlock<SER_BYTES> &buffer, bool allow_identity=true) | ||||
| /*throw(CryptoException)*/ { | /*throw(CryptoException)*/ { | ||||
| if (DECAF_SUCCESS != decode(buffer,allow_identity ? DECAF_TRUE : DECAF_FALSE)) { | |||||
| if (DECAF_SUCCESS != decode(buffer,allow_identity)) { | |||||
| throw CryptoException(); | throw CryptoException(); | ||||
| } | } | ||||
| } | } | ||||
| @@ -752,7 +752,7 @@ decaf_bool_t API_NS(point_eq) ( const point_t p, const point_t q ) { | |||||
| gf_mul ( b, q->y, p->x ); | gf_mul ( b, q->y, p->x ); | ||||
| mask_t succ = gf_eq(a,b); | mask_t succ = gf_eq(a,b); | ||||
| #if (COFACTOR == 8) && IMAGINE_TWIST | |||||
| #if (COFACTOR == 8) | |||||
| gf_mul ( a, p->y, q->y ); | gf_mul ( a, p->y, q->y ); | ||||
| gf_mul ( b, q->x, p->x ); | gf_mul ( b, q->x, p->x ); | ||||
| #if !(IMAGINE_TWIST) | #if !(IMAGINE_TWIST) | ||||
| @@ -305,7 +305,7 @@ public: | |||||
| */ | */ | ||||
| inline explicit Point(const FixedBlock<SER_BYTES> &buffer, bool allow_identity=true) | inline explicit Point(const FixedBlock<SER_BYTES> &buffer, bool allow_identity=true) | ||||
| /*throw(CryptoException)*/ { | /*throw(CryptoException)*/ { | ||||
| if (DECAF_SUCCESS != decode(buffer,allow_identity ? DECAF_TRUE : DECAF_FALSE)) { | |||||
| if (DECAF_SUCCESS != decode(buffer,allow_identity)) { | |||||
| throw CryptoException(); | throw CryptoException(); | ||||
| } | } | ||||
| } | } | ||||