Constructor and Description |
---|
EdDSAPrivateKeySpec(byte[] seed,
byte[] h,
byte[] a,
GroupElement A,
EdDSAParameterSpec spec)
No validation of any parameters other than a.
|
EdDSAPrivateKeySpec(byte[] seed,
EdDSAParameterSpec spec) |
EdDSAPrivateKeySpec(byte[] a,
GroupElement A,
EdDSAParameterSpec spec)
No validation of any parameters other than a.
|
EdDSAPrivateKeySpec(EdDSAParameterSpec spec,
byte[] h)
Initialize directly from the hash.
|
public EdDSAPrivateKeySpec(byte[] seed, EdDSAParameterSpec spec)
seed
- the private keyspec
- the parameter specification for this keyIllegalArgumentException
- if seed length is wrong or hash algorithm is unsupportedpublic EdDSAPrivateKeySpec(EdDSAParameterSpec spec, byte[] h)
spec
- the parameter specification for this keyh
- the private keyIllegalArgumentException
- if hash length is wrongpublic EdDSAPrivateKeySpec(byte[] a, GroupElement A, EdDSAParameterSpec spec)
a
- must be "clamped" (for Ed) or reduced mod l (for Red)A
- if null, will be derived from a.IllegalArgumentException
- if a not clamped or reducedpublic EdDSAPrivateKeySpec(byte[] seed, byte[] h, byte[] a, GroupElement A, EdDSAParameterSpec spec)
seed
- may be nullh
- may be nulla
- must be "clamped" (for Ed) or reduced mod l (for Red)A
- if null, will be derived from a.IllegalArgumentException
- if a not clamped or reducedpublic byte[] getSeed()
public byte[] getH()
public byte[] geta()
public GroupElement getA()
public EdDSAParameterSpec getParams()