IAIK ECC
version 2.18

iaik.security.ecc.math.field
Interface PrimeField

All Superinterfaces:
Field

public interface PrimeField
extends Field

Extension to the field interface containing prime field specific constants.


Field Summary
static int PRIME_FIELD_ID
          Id of a prime field.
static java.lang.String PRIME_FIELD_OID
          Objcet Identifier for a prime field for ASN.1 encoding.
 
Method Summary
 java.math.BigInteger getModulus()
          The modulus of the prime field.
 void half(FieldElement a)
          Calculates the half of a prime field value.
 FieldElement newElement(java.math.BigInteger 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

PRIME_FIELD_ID

public static final int PRIME_FIELD_ID
Id of a prime field.

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

PRIME_FIELD_OID

public static final java.lang.String PRIME_FIELD_OID
Objcet Identifier for a prime field for ASN.1 encoding.

See Also:
Constant Field Values
Method Detail

half

public void half(FieldElement a)
Calculates the half of a prime field value. ATTENTION: you must provide a field element of the correct field.

Parameters:
a - the field element to be inverted.

newElement

public FieldElement newElement(java.math.BigInteger 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.

getModulus

public java.math.BigInteger getModulus()
The modulus of the prime field.

Returns:
the modulus of this prime field.

IAIK ECC
version 2.18

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