| 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)Create a new EdDSA private key specification from a seed. |
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. |
| Modifier and Type | Method and Description |
|---|---|
byte[] | geta()Return the private key. |
GroupElement | getA()Return the public key. |
byte[] | getH()Return the hash. |
EdDSAParameterSpec | getParams()Returns the parameter specification for this key. |
byte[] | getSeed()Return the seed, or null if constructed from the private key directly. |
public 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 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(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(EdDSAParameterSpec spec, byte[] h)
spec - the parameter specification for this keyh - the private keyIllegalArgumentException - if hash length is wrongpublic byte[] geta()
public GroupElement getA()
public byte[] getH()
public EdDSAParameterSpec getParams()
public byte[] getSeed()