package es.gob.jmulticard;
import java.security.KeyPair;
import org.junit.Test;
import es.gob.jmulticard.CryptoHelper.EcCurve;
import es.gob.jmulticard.jse.provider.JseCryptoHelper;
/** Pruebas de las operaciones criptográficas en JSE.
* @author Tomás García-Merás. */
public final class TestJseCryptoHelper {
/** Prueba de la generación de un par de claves de curva elíptica.
* @throws Exception EN cualquier error. */
@SuppressWarnings("static-method")
@Test
public void testEcKeyPairGeneration() throws Exception {
final KeyPair kp = new JseCryptoHelper().generateEcKeyPair(EcCurve.BRAINPOOL_P256_R1);
System.out.println(kp);
}
}