| Modifier and Type | Field and Description |
|---|---|
| private final KeyedHashFunctions | khf
Randomization functions. |
| private final WOTSPlusParameters | params
WOTS+ parameters. |
| private byte[] | publicSeed
WOTS+ public seed. |
| private byte[] | secretKeySeed
WOTS+ secret key seed. |
| Access | Constructor and Description |
|---|---|
| pack-priv | WOTSPlus(WOTSPlusParameters
Parameters for WOTSPlus object. params)Constructs a new WOTS+ one-time signature system based on the given WOTS+ parameters. |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | Returns: Value obtained by iterating F for steps times on input startHash, using the outputs of PRF.Starting point. startHash, int Start index. startIndex, int Steps to take. steps, OTSHashAddress OTS hash address for randomization. otsHashAddress)Computes an iteration of F on an n-byte input using outputs of PRF. |
| private List | Returns: outLength-length list of base w integers.Input data. messageDigest, int Base. w, int Length of output. outLength)Obtain base w values from Input. |
| private byte[] | Returns: Private key at index.Index. index)Derive private key at index from secret key seed. |
| protected KeyedHashFunctions | |
| protected WOTSPlusParameters | |
| protected WOTSPlusPrivateKeyParameters | |
| pack-priv WOTSPlusPublicKeyParameters | Returns: WOTS+ public key.OTS hash address for randomization. otsHashAddress)Calculates a new public key based on the state of secretKeySeed, publicSeed and otsHashAddress. |
| pack-priv WOTSPlusPublicKeyParameters | Returns: WOTS+ public key derived from digest and signature.The digest that was signed. messageDigest, WOTSPlusSignature Signarure on digest. signature, OTSHashAddress OTS hash address for randomization. otsHashAddress)Calculates a public key based on digest and signature. |
| protected byte[] | |
| protected byte[] | |
| protected byte[] | Returns: WOTS+ secret key at index.one time hash address. otsHashAddress)Derive WOTS+ secret key for specific index as in XMSS ref impl Andreas Huelsing. |
| pack-priv void | importKeys(byte[]
Secret key seed. secretKeySeed, byte[] Public seed. publicSeed)Import keys to WOTS+ instance. |
| pack-priv WOTSPlusSignature | Returns: WOTS+ signature.Digest to sign. messageDigest, OTSHashAddress OTS hash address for randomization. otsHashAddress)Creates a signature for the n-byte messageDigest. |
| khf | back to summary |
|---|---|
| private final KeyedHashFunctions khf Randomization functions. | |
| params | back to summary |
|---|---|
| private final WOTSPlusParameters params WOTS+ parameters. | |
| publicSeed | back to summary |
|---|---|
| private byte[] publicSeed WOTS+ public seed. | |
| secretKeySeed | back to summary |
|---|---|
| private byte[] secretKeySeed WOTS+ secret key seed. | |
| WOTSPlus | back to summary |
|---|---|
| pack-priv WOTSPlus(WOTSPlusParameters params) Constructs a new WOTS+ one-time signature system based on the given WOTS+ parameters.
| |
| chain | back to summary |
|---|---|
| private byte[] chain(byte[] startHash, int startIndex, int steps, OTSHashAddress otsHashAddress) Computes an iteration of F on an n-byte input using outputs of PRF.
| |
| convertToBaseW | back to summary |
|---|---|
| private List Obtain base w values from Input. | |
| expandSecretKeySeed | back to summary |
|---|---|
| private byte[] expandSecretKeySeed(int index) Derive private key at index from secret key seed.
| |
| getKhf | back to summary |
|---|---|
| protected KeyedHashFunctions getKhf() Getter keyed hash functions.
| |
| getParams | back to summary |
|---|---|
| protected WOTSPlusParameters getParams() Getter parameters.
| |
| getPrivateKey | back to summary |
|---|---|
| protected WOTSPlusPrivateKeyParameters getPrivateKey() Getter private key.
| |
| getPublicKey | back to summary |
|---|---|
| pack-priv WOTSPlusPublicKeyParameters getPublicKey(OTSHashAddress otsHashAddress) Calculates a new public key based on the state of secretKeySeed, publicSeed and otsHashAddress.
| |
| getPublicKeyFromSignature | back to summary |
|---|---|
| pack-priv WOTSPlusPublicKeyParameters getPublicKeyFromSignature(byte[] messageDigest, WOTSPlusSignature signature, OTSHashAddress otsHashAddress) Calculates a public key based on digest and signature.
| |
| getPublicSeed | back to summary |
|---|---|
| protected byte[] getPublicSeed() Getter public seed.
| |
| getSecretKeySeed | back to summary |
|---|---|
| protected byte[] getSecretKeySeed() Getter secret key seed.
| |
| getWOTSPlusSecretKey | back to summary |
|---|---|
| protected byte[] getWOTSPlusSecretKey(byte[] secretKeySeed, OTSHashAddress otsHashAddress) Derive WOTS+ secret key for specific index as in XMSS ref impl Andreas Huelsing.
| |
| importKeys | back to summary |
|---|---|
| pack-priv void importKeys(byte[] secretKeySeed, byte[] publicSeed) Import keys to WOTS+ instance.
| |
| sign | back to summary |
|---|---|
| pack-priv WOTSPlusSignature sign(byte[] messageDigest, OTSHashAddress otsHashAddress) Creates a signature for the n-byte messageDigest.
| |