Constructor and Description |
---|
EdDSAPrivateKeySpec(byte[] seed,
byte[] h,
byte[] a,
GroupElement A,
EdDSAParameterSpec spec) |
EdDSAPrivateKeySpec(byte[] seed,
EdDSAParameterSpec spec) |
EdDSAPrivateKeySpec(EdDSAParameterSpec spec,
byte[] h)
Initialize directly from the hash.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
geta() |
GroupElement |
getA() |
byte[] |
getH() |
EdDSAParameterSpec |
getParams() |
byte[] |
getSeed() |
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[] seed, byte[] h, byte[] a, GroupElement A, EdDSAParameterSpec spec)
public byte[] getSeed()
public byte[] getH()
public byte[] geta()
public GroupElement getA()
public EdDSAParameterSpec getParams()
Copyright © 2019. All rights reserved.