All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.spongycastle.jce.spec.ECNamedCurveParameterSpec Maven / Gradle / Ivy

Go to download

The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider for the Bouncy Castle Cryptography APIs for JDK 1.5 to JDK 1.7.

The newest version!
package org.spongycastle.jce.spec;

import java.math.BigInteger;

import org.spongycastle.math.ec.ECCurve;
import org.spongycastle.math.ec.ECPoint;

/**
 * specification signifying that the curve parameters can also be
 * refered to by name.
 * 

* If you are using JDK 1.5 you should be looking at ECNamedCurveSpec. */ public class ECNamedCurveParameterSpec extends ECParameterSpec { private String name; public ECNamedCurveParameterSpec( String name, ECCurve curve, ECPoint G, BigInteger n) { super(curve, G, n); this.name = name; } public ECNamedCurveParameterSpec( String name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h) { super(curve, G, n, h); this.name = name; } public ECNamedCurveParameterSpec( String name, ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed) { super(curve, G, n, h, seed); this.name = name; } /** * return the name of the curve the EC domain parameters belong to. */ public String getName() { return name; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy