com.ibm.crypto.fips.provider

Class ECParameters

  • java.lang.Object
    • java.security.AlgorithmParametersSpi
      • com.ibm.crypto.fips.provider.ECParameters


  • public final class ECParameters
    extends java.security.AlgorithmParametersSpi
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected int cofactor 
      protected java.security.spec.EllipticCurve curve 
      protected java.security.spec.ECPoint generator 
      protected java.math.BigInteger order 
    • Constructor Summary

      Constructors 
      Constructor and Description
      ECParameters() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.security.spec.ECParameterSpec decodeECParameters(byte[] encodedECParameters) 
      static java.security.spec.EllipticCurve decodeEllipticCurve(com.ibm.security.util.DerValue encodedEllipticCurve, java.security.spec.ECField ecField) 
      static java.security.spec.ECPoint decodePoint(byte[] data, java.security.spec.EllipticCurve curve) 
      static java.security.spec.ECFieldFp decodePrimeFieldType(com.ibm.security.util.DerValue encodedPrimeFieldType) 
      byte[] encodeECParameters() 
      static com.ibm.security.util.DerValue encodeEllipticCurve(java.security.spec.EllipticCurve curve) 
      static byte[] encodePoint(java.security.spec.ECPoint point, java.security.spec.EllipticCurve curve) 
      static com.ibm.security.util.DerValue encodePrimeFieldType(java.security.spec.ECFieldFp fieldID) 
      protected byte[] engineGetEncoded() 
      protected byte[] engineGetEncoded(java.lang.String format) 
      protected <T extends java.security.spec.AlgorithmParameterSpec> 
      T
      engineGetParameterSpec(java.lang.Class<T> paramSpec) 
      protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) 
      protected void engineInit(byte[] params) 
      protected void engineInit(byte[] params, java.lang.String format) 
      protected java.lang.String engineToString() 
      protected static java.security.AlgorithmParameters getAlgorithmParameters(java.security.spec.ECParameterSpec spec) 
      static ECNamedCurve getNamedCurve(java.security.spec.ECParameterSpec params) 
      protected byte[] internalGetEncoded() 
      protected <T extends java.security.spec.AlgorithmParameterSpec> 
      T
      internalGetParameterSpec(java.lang.Class<T> paramSpec) 
      protected void internalInit(java.security.spec.AlgorithmParameterSpec paramSpec) 
      protected void internalInit(byte[] params) 
      protected java.lang.String internalToString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cofactor

        protected int cofactor
      • curve

        protected java.security.spec.EllipticCurve curve
      • generator

        protected java.security.spec.ECPoint generator
      • order

        protected java.math.BigInteger order
    • Constructor Detail

      • ECParameters

        public ECParameters()
    • Method Detail

      • engineGetEncoded

        protected byte[] engineGetEncoded()
                                   throws java.io.IOException
        Specified by:
        engineGetEncoded in class java.security.AlgorithmParametersSpi
        Throws:
        java.io.IOException
      • internalGetEncoded

        protected byte[] internalGetEncoded()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • engineGetEncoded

        protected byte[] engineGetEncoded(java.lang.String format)
                                   throws java.io.IOException
        Specified by:
        engineGetEncoded in class java.security.AlgorithmParametersSpi
        Throws:
        java.io.IOException
      • engineGetParameterSpec

        protected <T extends java.security.spec.AlgorithmParameterSpec> T engineGetParameterSpec(java.lang.Class<T> paramSpec)
                                                                                      throws java.security.spec.InvalidParameterSpecException
        Specified by:
        engineGetParameterSpec in class java.security.AlgorithmParametersSpi
        Throws:
        java.security.spec.InvalidParameterSpecException
      • internalGetParameterSpec

        protected <T extends java.security.spec.AlgorithmParameterSpec> T internalGetParameterSpec(java.lang.Class<T> paramSpec)
                                                                                        throws java.security.spec.InvalidParameterSpecException
        Throws:
        java.security.spec.InvalidParameterSpecException
      • engineInit

        protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
                           throws java.security.spec.InvalidParameterSpecException
        Specified by:
        engineInit in class java.security.AlgorithmParametersSpi
        Throws:
        java.security.spec.InvalidParameterSpecException
      • internalInit

        protected void internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
                             throws java.security.spec.InvalidParameterSpecException
        Throws:
        java.security.spec.InvalidParameterSpecException
      • engineInit

        protected void engineInit(byte[] params)
                           throws java.io.IOException
        Specified by:
        engineInit in class java.security.AlgorithmParametersSpi
        Throws:
        java.io.IOException
      • internalInit

        protected void internalInit(byte[] params)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • engineInit

        protected void engineInit(byte[] params,
                      java.lang.String format)
                           throws java.io.IOException
        Specified by:
        engineInit in class java.security.AlgorithmParametersSpi
        Throws:
        java.io.IOException
      • engineToString

        protected java.lang.String engineToString()
        Specified by:
        engineToString in class java.security.AlgorithmParametersSpi
      • internalToString

        protected java.lang.String internalToString()
      • getAlgorithmParameters

        protected static java.security.AlgorithmParameters getAlgorithmParameters(java.security.spec.ECParameterSpec spec)
                                                                           throws java.security.InvalidKeyException,
                                                                                  java.security.spec.InvalidParameterSpecException
        Throws:
        java.security.InvalidKeyException
        java.security.spec.InvalidParameterSpecException
      • encodePoint

        public static byte[] encodePoint(java.security.spec.ECPoint point,
                         java.security.spec.EllipticCurve curve)
      • decodePoint

        public static java.security.spec.ECPoint decodePoint(byte[] data,
                                             java.security.spec.EllipticCurve curve)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • encodeEllipticCurve

        public static com.ibm.security.util.DerValue encodeEllipticCurve(java.security.spec.EllipticCurve curve)
                                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • decodeEllipticCurve

        public static java.security.spec.EllipticCurve decodeEllipticCurve(com.ibm.security.util.DerValue encodedEllipticCurve,
                                                           java.security.spec.ECField ecField)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • encodePrimeFieldType

        public static com.ibm.security.util.DerValue encodePrimeFieldType(java.security.spec.ECFieldFp fieldID)
                                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • decodePrimeFieldType

        public static java.security.spec.ECFieldFp decodePrimeFieldType(com.ibm.security.util.DerValue encodedPrimeFieldType)
                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • encodeECParameters

        public byte[] encodeECParameters()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • decodeECParameters

        public static java.security.spec.ECParameterSpec decodeECParameters(byte[] encodedECParameters)
                                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getNamedCurve

        public static ECNamedCurve getNamedCurve(java.security.spec.ECParameterSpec params)
© Portions Copyright 2003, 2014, 2015, 2016 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2014 Oracle and/or its affiliates. All rights reserved.