1 /* 2 * @(#)ECField.java 1.4 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 package java.security.spec; 8 9 import java.math.BigInteger; 10 import java.util.Arrays; 11 12 /** 13 * This interface represents an elliptic curve (EC) finite field. 14 * All specialized EC fields must implements this interface. 15 * 16 * @see ECFieldFp 17 * @see ECFieldF2m 18 * 19 * @author Valerie Peng 20 * @version 1.4, 12/19/03 21 * 22 * @since 1.5 23 */ 24 public interface ECField { 25 /** 26 * Returns the field size in bits. Note: For prime finite 27 * field ECFieldFp, size of prime p in bits is returned. 28 * For characteristic 2 finite field ECFieldF2m, m is returned. 29 * @return the field size in bits. 30 */ 31 int getFieldSize(); 32 } 33