Maven module :un.api : api-encoding :
Class : un.impl.cryptography.ec.ECParam
Extends/Implements : -
Subclasses : -

The ECField class implements one of the interfaces to select
compiled in parameters. I am curious as to how much slower
it would be if these parameters were variables which could
be changed at runtime. It would be handy to select the
field size at runtime by specifying GF_M. This class simulates
using runtime parameters. This will also require changing ECField
to move static parameters into another class, so I haven't
done it yet.


Variables : GF_M, GF_L, GF_K, GF_T, GF_RP, GF_NZT, GF_TM0, GF_TM1, GF_TM2, EC_B, EC_COF, EC_H
Functions : -



Dimension of the large finite field (GF_M = GF_L*GF_K). */
int GF_M


Dimension of the small finite field. */
int GF_L


Degree of the large field reduction trinomial. */
char GF_K


Intermediate power of the reduction trinomial. */
int GF_T


Reduction polynomial for the small field (truncated). */
int GF_RP


Element of the large field with nonzero trace. */
char GF_NZT


Size of trace mask. */
int GF_TM0


1st nonzero element of trace mask. */
int GF_TM1


2nd nonzero element of trace mask. */
int GF_TM2


Scalar term of elliptic curve equation (y^2 + xy = x^3 + EC_B). */
char EC_B


Cofactor of the selected elliptic curve point G. */
int EC_COF


MQV modulus (ceil (lg(r)/2), where r is the prime order of G). */
int EC_H