IAIK ECC
version 2.18

iaik.security.ecc.math.field
Interface BinaryField

All Superinterfaces:
Field

public interface BinaryField
extends Field

Adds some binary field specific constants and methods to the field interface. This interface assumes polynomial base representation of the finite field elements. At the moment there is no interface for GNB representations.


Field Summary
static int BINARY_FIELD_ID
          Id of a binary field
static java.lang.String BINARY_FIELD_OID
          Objcet Identifier for a binary field for ASN.1 encoding.
static java.lang.String CHARACTERISTIC_TWO_gnBASIS
          Object Identifiers for the gaussian normal basis
static java.lang.String CHARACTERISTIC_TWO_ppBASIS
          Object Identifiers for the pentamonial basis
static java.lang.String CHARACTERISTIC_TWO_tpBASIS
          Object Identifiers for the trinomial basis
 
Method Summary
 int[] getIrreduciblePolynomial()
          In polynomial base representation the field elements are represented modulo a irreducible polynom.
 int getOrder()
           
 FieldElement newElement(int[] v)
          Creates a new element over this field.
 
Methods inherited from interface iaik.security.ecc.math.field.Field
add, getFieldFactory, getFieldId, getONEelement, getSize, getZEROelement, invert, multiply, negate, newElement, square, toASN1Object
 

Field Detail

BINARY_FIELD_ID

public static final int BINARY_FIELD_ID
Id of a binary field

See Also:
Field.getFieldId(), Constant Field Values

BINARY_FIELD_OID

public static final java.lang.String BINARY_FIELD_OID
Objcet Identifier for a binary field for ASN.1 encoding.

See Also:
Constant Field Values

CHARACTERISTIC_TWO_gnBASIS

public static final java.lang.String CHARACTERISTIC_TWO_gnBASIS
Object Identifiers for the gaussian normal basis

See Also:
Constant Field Values

CHARACTERISTIC_TWO_ppBASIS

public static final java.lang.String CHARACTERISTIC_TWO_ppBASIS
Object Identifiers for the pentamonial basis

See Also:
Constant Field Values

CHARACTERISTIC_TWO_tpBASIS

public static final java.lang.String CHARACTERISTIC_TWO_tpBASIS
Object Identifiers for the trinomial basis

See Also:
Constant Field Values
Method Detail

getIrreduciblePolynomial

public int[] getIrreduciblePolynomial()
In polynomial base representation the field elements are represented modulo a irreducible polynom.

Returns:
the irreducible polynom definint this field.

getOrder

public int getOrder()
Returns:
the order of the underlying field polynomial (for prime fields 0).

newElement

public FieldElement newElement(int[] v)
Creates a new element over this field. ATTENTION: you must provide the correct parameter type, otherwise you will get garbage.

Parameters:
v - the value of the element to be created
Returns:
a new element of this field with the specified value.

IAIK ECC
version 2.18

IAIK-ECC 2.18, (c) 2002 IAIK, (c) 2003 SIC