Modifier and Type | Field and Description |
---|---|
private final AlgorithmParameterSpec | |
private final byte[] |
Access | Constructor and Description |
---|---|
public | XECPrivateKeySpec(AlgorithmParameterSpec
the algorithm parameters params, byte[] the unpruned encoded scalar value. This array is copied
to protect against subsequent modification. scalar)Construct a private key spec using the supplied parameters and encoded scalar value. |
Modifier and Type | Method and Description |
---|---|
public AlgorithmParameterSpec | Returns: the algorithm parametersGet the algorithm parameters that define the curve and other settings. |
public byte[] | Returns: the unpruned encoded scalar valueGet the scalar value encoded as an unpruned byte array. |
params | back to summary |
---|---|
private final AlgorithmParameterSpec params |
scalar | back to summary |
---|---|
private final byte[] scalar |
XECPrivateKeySpec | back to summary |
---|---|
public XECPrivateKeySpec(AlgorithmParameterSpec params, byte[] scalar) Construct a private key spec using the supplied parameters and encoded scalar value.
|
getParams | back to summary |
---|---|
public AlgorithmParameterSpec getParams() Get the algorithm parameters that define the curve and other settings.
|
getScalar | back to summary |
---|---|
public byte[] getScalar() Get the scalar value encoded as an unpruned byte array. A new copy of the array is returned each time this method is called.
|