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. import java.math.BigInteger;
  9. import java.util.Arrays;
  10. /**
  11. * This interface represents an elliptic curve (EC) finite field.
  12. * All specialized EC fields must implements this interface.
  13. *
  14. * @see ECFieldFp
  15. * @see ECFieldF2m
  16. *
  17. * @author Valerie Peng
  18. * @version 1.4, 12/19/03
  19. *
  20. * @since 1.5
  21. */
  22. public interface ECField {
  23. /**
  24. * Returns the field size in bits. Note: For prime finite
  25. * field ECFieldFp, size of prime p in bits is returned.
  26. * For characteristic 2 finite field ECFieldF2m, m is returned.
  27. * @return the field size in bits.
  28. */
  29. int getFieldSize();
  30. }