Top Fields Constructors Methods
org.bouncycastle.pqc.crypto.sphincsplus

pack-priv Class Fors

extends Object
Class Inheritance
Imports
java.util.LinkedList, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
pack-priv SPHINCSPlusEngine

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static int[]
message_to_idxs(byte[] msg, int fors_trees, int fors_height)

Interprets m as SPX_FORS_HEIGHT-bit unsigned integers.

public byte[]
pkFromSig(SIG_FORS[] sig_fors, byte[] message, byte[] pkSeed, ADRS adrs)

public SIG_FORS[]
sign(byte[] md, byte[] skSeed, byte[] pkSeed, ADRS paramAdrs)

pack-priv byte[]
treehash(byte[] skSeed, int s, int z, byte[] pkSeed, ADRS adrsParam)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

engineback to summary
pack-priv SPHINCSPlusEngine engine

Constructor Detail

Forsback to summary
public Fors(SPHINCSPlusEngine engine)

Method Detail

message_to_idxsback to summary
pack-priv static int[] message_to_idxs(byte[] msg, int fors_trees, int fors_height)

Interprets m as SPX_FORS_HEIGHT-bit unsigned integers. Assumes m contains at least SPX_FORS_HEIGHT * SPX_FORS_TREES bits. Assumes indices has space for SPX_FORS_TREES integers.

pkFromSigback to summary
public byte[] pkFromSig(SIG_FORS[] sig_fors, byte[] message, byte[] pkSeed, ADRS adrs)
signback to summary
public SIG_FORS[] sign(byte[] md, byte[] skSeed, byte[] pkSeed, ADRS paramAdrs)
treehashback to summary
pack-priv byte[] treehash(byte[] skSeed, int s, int z, byte[] pkSeed, ADRS adrsParam)