Save This Page
Home » openjdk-7 » java » security » spec » [javadoc | source]
java.security.spec
public class: ECFieldF2m [javadoc | source]
java.lang.Object
   java.security.spec.ECFieldF2m

All Implemented Interfaces:
    ECField

This immutable class defines an elliptic curve (EC) characteristic 2 finite field.
Constructor:
 public ECFieldF2m(int m) 
 public ECFieldF2m(int m,
    BigInteger rp) 
    Creates an elliptic curve characteristic 2 finite field which has 2^m elements with polynomial basis. The reduction polynomial for this field is based on rp whose i-th bit correspondes to the i-th coefficient of the reduction polynomial.

    Note: A valid reduction polynomial is either a trinomial (X^m + X^k + 1 with m > k >= 1) or a pentanomial (X^m + X^k3 + X^k2 + X^k1 + 1 with m > k3 > k2 > k1 >= 1).

    Parameters:
    m - with 2^m being the number of elements.
    rp - the BigInteger whose i-th bit corresponds to the i-th coefficient of the reduction polynomial.
    Throws:
    NullPointerException - if rp is null.
    IllegalArgumentException - if m is not positive, or rp does not represent a valid reduction polynomial.
    exception: NullPointerException - if rp is null.
    exception: IllegalArgumentException - if m is not positive, or rp does not represent a valid reduction polynomial.
 public ECFieldF2m(int m,
    int[] ks) 
Method from java.security.spec.ECFieldF2m Summary:
equals,   getFieldSize,   getM,   getMidTermsOfReductionPolynomial,   getReductionPolynomial,   hashCode
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.security.spec.ECFieldF2m Detail:
 public boolean equals(Object obj) 
    Compares this finite field for equality with the specified object.
 public int getFieldSize() 
    Returns the field size in bits which is m for this characteristic 2 finite field.
 public int getM() 
    Returns the value m of this characteristic 2 finite field.
 public int[] getMidTermsOfReductionPolynomial() 
    Returns an integer array which contains the order of the middle term(s) of the reduction polynomial for polynomial basis or null for normal basis.
 public BigInteger getReductionPolynomial() 
    Returns a BigInteger whose i-th bit corresponds to the i-th coefficient of the reduction polynomial for polynomial basis or null for normal basis.
 public int hashCode() 
    Returns a hash code value for this characteristic 2 finite field.