Top Fields Constructors Methods
org.bouncycastle.jcajce.spec

pack-priv Class ECUtil

extends Object
Class Inheritance
Imports
java.math.BigInteger, java.security.spec.ECField, .ECFieldF2m, .ECFieldFp, .ECParameterSpec, .ECPoint, .EllipticCurve, java.util.Enumeration, .HashMap, .HashSet, .Map, .Set, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.x9.ECNamedCurveTable, org.bouncycastle.crypto.asymmetric.ECDomainParameters, .ECDomainParametersIndex, org.bouncycastle.math.ec.ECAlgorithms, .ECCurve, org.bouncycastle.math.field.FiniteField, .Polynomial, .PolynomialExtensionField, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private static Map<K, V>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static ECCurve
convertCurve(EllipticCurve ec, BigInteger order, int cofactor)

public static EllipticCurve
convertCurve(ECCurve curve, byte[] seed)

public static ECField
public static ECDomainParameters
private static int[]

Returns:

the sorted array of middle terms of the reduction polynomial. This array always has length 3.
convertMidTerms
(int[]
The unsorted array of middle terms of the reduction polynomial of length 1 or 3.
k
)

Returns a sorted array of middle terms of the reduction polynomial.

public static ECPoint
public static ECParameterSpec
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

customCurvesback to summary
private static Map<K, V> customCurves

Constructor Detail

ECUtilback to summary
pack-priv ECUtil()

Method Detail

convertCurveback to summary
pack-priv static ECCurve convertCurve(EllipticCurve ec, BigInteger order, int cofactor)
convertCurveback to summary
public static EllipticCurve convertCurve(ECCurve curve, byte[] seed)
convertFieldback to summary
public static ECField convertField(FiniteField field)
convertFromSpecback to summary
public static ECDomainParameters convertFromSpec(ECParameterSpec ecSpec)
convertMidTermsback to summary
private static int[] convertMidTerms(int[] k)

Returns a sorted array of middle terms of the reduction polynomial.

Parameters
k:int[]

The unsorted array of middle terms of the reduction polynomial of length 1 or 3.

Returns:int[]

the sorted array of middle terms of the reduction polynomial. This array always has length 3.

convertPointback to summary
public static ECPoint convertPoint(ECCurve curve, ECPoint point)
convertToSpecback to summary
public static ECParameterSpec convertToSpec(ECDomainParameters domainParameters)