APIdia Launch Partner
Top Fields Constructors Methods
sun.security.ec

public Class XECParameters

extends Object
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, java.security.spec.AlgorithmParameterSpec, .NamedParameterSpec, java.util.Map, .HashMap, java.util.function.Function, sun.security.util.KnownOIDs, .ObjectIdentifier, sun.security.x509.AlgorithmId

Field Summary

Modifier and TypeField and Description
private final int
private final byte
private final int
private final int
private final String
private static final ParametersMap<XECParameters>
private final ObjectIdentifier
private final BigInteger
p

pack-priv static final XECParameters
pack-priv static final XECParameters

Constructor Summary

AccessConstructor and Description
public
XECParameters(int
The number of relevant bits in a public/private key.
bits
,
BigInteger
The prime that defines the finite field.
p
,
int
The value of (a - 2) / 4, where a is the second-degree curve coefficient.
a24
,
byte
The point that generates the desired group
basePoint
,
int
The base-2 logarithm of the cofactor of the curve
logCofactor
,
ObjectIdentifier oid, String name)

Construct an object holding the supplied parameters.

Method Summary

Modifier and TypeMethod and Description
private static XECParameters
addParameters(int bits, BigInteger p, int a24, byte basePoint, int logCofactor, KnownOIDs koid, String name)

public static <T extends Throwable> XECParameters
get(Function<String, T> exception, AlgorithmId algId)

public static <T extends Throwable> XECParameters
get(Function<String, T> exception, AlgorithmParameterSpec params)

public int
public byte
public int
public static <T extends Throwable> XECParameters
getBySize(Function<String, T> exception, int size)

public int
public int
public String
public ObjectIdentifier
public BigInteger
getP()

pack-priv boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

a24back to summary
private final int a24
basePointback to summary
private final byte basePoint
bitsback to summary
private final int bits
logCofactorback to summary
private final int logCofactor
nameback to summary
private final String name
namedParamsback to summary
private static final ParametersMap<XECParameters> namedParams
oidback to summary
private final ObjectIdentifier oid
pback to summary
private final BigInteger p
X25519back to summary
pack-priv static final XECParameters X25519
X448back to summary
pack-priv static final XECParameters X448

Constructor Detail

XECParametersback to summary
public XECParameters(int bits, BigInteger p, int a24, byte basePoint, int logCofactor, ObjectIdentifier oid, String name)

Construct an object holding the supplied parameters. No parameters are checked, so this method always succeeds. This method supports Montgomery curves of the form y^2 = x^3 + ax^2 + x.

Parameters
bits:int

The number of relevant bits in a public/private key.

p:BigInteger

The prime that defines the finite field.

a24:int

The value of (a - 2) / 4, where a is the second-degree curve coefficient.

basePoint:byte

The point that generates the desired group

logCofactor:int

The base-2 logarithm of the cofactor of the curve

Method Detail

addParametersback to summary
private static XECParameters addParameters(int bits, BigInteger p, int a24, byte basePoint, int logCofactor, KnownOIDs koid, String name)
getback to summary
public static <T extends Throwable> XECParameters get(Function<String, T> exception, AlgorithmId algId) throws Function:T
getback to summary
public static <T extends Throwable> XECParameters get(Function<String, T> exception, AlgorithmParameterSpec params) throws Function:T
getA24back to summary
public int getA24()
getBasePointback to summary
public byte getBasePoint()
getBitsback to summary
public int getBits()
getBySizeback to summary
public static <T extends Throwable> XECParameters getBySize(Function<String, T> exception, int size) throws Function:T
getBytesback to summary
public int getBytes()
getLogCofactorback to summary
public int getLogCofactor()
getNameback to summary
public String getName()
getOidback to summary
public ObjectIdentifier getOid()
getPback to summary
public BigInteger getP()
oidEqualsback to summary
pack-priv boolean oidEquals(XECParameters other)