public class ECCDemoUtil extends java.lang.Object
Constructor and Description |
---|
ECCDemoUtil() |
Modifier and Type | Method and Description |
---|---|
static java.security.spec.AlgorithmParameterSpec |
createParamSpec(java.lang.String curveName)
Creates an EC AlgorithmParameterSpec for the given curve name.
|
static double |
getECCelerateVersion()
Gets the version of the IAIK ECCelerate provider (if used).
|
static java.lang.String |
getJDKVersion()
Gets the version number of the current JDK.
|
static iaik.cms.IaikProvider |
installIaikEccelerateProvider()
Installs the IAIK ECCelerate SecurityProvider.
|
static iaik.cms.IaikProvider |
installIaikEccProvider()
Installs an ECC supporting IAIK SecurityProvider.
|
static void |
signCertificate(iaik.x509.X509Certificate cert,
iaik.asn1.structures.AlgorithmID algorithm,
java.security.PrivateKey issuerPK)
Signs the given certificate with deterministic generation of parameter k (if supported).
|
public ECCDemoUtil()
public static iaik.cms.IaikProvider installIaikEccProvider() throws java.lang.Exception
java.lang.Exception
- if the IAIK ECC Provider cannot be installedpublic static iaik.cms.IaikProvider installIaikEccelerateProvider() throws java.lang.Exception
java.lang.Exception
- if the provider cannot be installedpublic static double getECCelerateVersion()
public static java.security.spec.AlgorithmParameterSpec createParamSpec(java.lang.String curveName) throws java.security.spec.InvalidParameterSpecException
curveName
- the name of the curvejava.security.spec.InvalidParameterSpecException
- if no AlgorithmParameterSpec for the given curve name is
available or cannot be createdpublic static void signCertificate(iaik.x509.X509Certificate cert, iaik.asn1.structures.AlgorithmID algorithm, java.security.PrivateKey issuerPK) throws java.security.InvalidKeyException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException
cert
- the certificate to be signedalgorithm
- the signature algorithmissuerPK
- the issuer private keyjava.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.security.InvalidKeyException
public static java.lang.String getJDKVersion()