@Test
  public void testFieldSizeInBytes() throws Exception {
    assertThat(
            EllipticCurves.fieldSizeInBytes(
                EllipticCurves.getCurveSpec(EllipticCurves.CurveType.NIST_P256).getCurve()))
        .isEqualTo(32);
    assertThat(
            EllipticCurves.fieldSizeInBytes(
                EllipticCurves.getCurveSpec(EllipticCurves.CurveType.NIST_P384).getCurve()))
        .isEqualTo(48);
    assertThat(
            EllipticCurves.fieldSizeInBytes(
                EllipticCurves.getCurveSpec(EllipticCurves.CurveType.NIST_P521).getCurve()))
        .isEqualTo(66);
  }
A class for storing test vectors. This class contains the directory for the public and private
key, the message and the corresponding signature.
java_src/src/test/java/com/google/crypto/tink/subtle/EllipticCurvesTest.java