To sign a document, we solve a LES (linear equation system) for each layer in order to find the oil variables of that layer and to be able to use the variables to compute the signature. This functionality is implemented in the RainbowSignature-class, by the aid of the private key.
Each layer is a part of the private key.
More information about the layer can be found in the paper of Jintai Ding, Dieter Schmidt: Rainbow, a New Multivariable Polynomial Signature Scheme. ACNS 2005: 164-175 (https://dx.doi.org/10.1007/11496137_12)
| Modifier and Type | Field and Description |
|---|---|
| private short[][][] | |
| private short[][][] | |
| private short[] | |
| private short[][] | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | Layer(byte
number of vinegar variables of this layer vi, byte number of vinegar variables of next layer. It's the same as
(num of oils) + (num of vinegars) of this layer. viNext, short[][][] alpha-coefficients in the polynomials of this layer coeffAlpha, short[][][] beta-coefficients in the polynomials of this layer coeffBeta, short[][] gamma-coefficients in the polynomials of this layer coeffGamma, short[] eta-coefficients in the polynomials of this layer coeffEta)Constructor |
| public | Layer(int vi, int viNext, SecureRandom
the random generator which is to be used sr)This function generates the coefficients of all polynomials in this layer at random using random generator. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: the result of the comparisonthe other object other)Overrides java. |
| public short[][][] | Returns: the coefficients of alpha-terms of this layer.Getter for the alpha-coefficients of the polynomials in this layer. |
| public short[][][] | Returns: the coefficients of beta-terms of this layer.Getter for the beta-coefficients of the polynomials in this layer. |
| public short[] | Returns: the coefficients eta of this layerGetter for the eta-coefficients of the polynomials in this layer. |
| public short[][] | Returns: the coefficients of gamma-terms of this layerGetter for the gamma-coefficients of the polynomials in this layer. |
| public int | Returns: the number of oil variables of this layer.Getter for the number of Oil variables of this layer. |
| public int | Returns: the number of vinegar variables of this layer.Getter for the number of vinegar variables of this layer. |
| public int | Returns: the number of vinegar variables of the next layer.Getter for the number of vinegar variables of the next layer. |
| public int | |
| public short[][] | Returns: coeff the coefficients of Oil variables and the free coeff in the polynomials of this layer.vinegar variables of this layer that should be plugged into
the polynomials. x)This method plugs in the vinegar variables into the polynomials of this layer and computes the coefficients of the Oil-variables as well as the free coefficient in each polynomial. |
| coeff_alpha | back to summary |
|---|---|
| private short[][][] coeff_alpha | |
| coeff_beta | back to summary |
|---|---|
| private short[][][] coeff_beta | |
| coeff_eta | back to summary |
|---|---|
| private short[] coeff_eta | |
| coeff_gamma | back to summary |
|---|---|
| private short[][] coeff_gamma | |
| oi | back to summary |
|---|---|
| private int oi | |
| vi | back to summary |
|---|---|
| private int vi | |
| viNext | back to summary |
|---|---|
| private int viNext | |
| Layer | back to summary |
|---|---|
| public Layer(byte vi, byte viNext, short[][][] coeffAlpha, short[][][] coeffBeta, short[][] coeffGamma, short[] coeffEta) Constructor
| |
| Layer | back to summary |
|---|---|
| public Layer(int vi, int viNext, SecureRandom sr) This function generates the coefficients of all polynomials in this layer at random using random generator.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. This function compares this Layer with another object.
| |
| getCoeffAlpha | back to summary |
|---|---|
| public short[][][] getCoeffAlpha() Getter for the alpha-coefficients of the polynomials in this layer.
| |
| getCoeffBeta | back to summary |
|---|---|
| public short[][][] getCoeffBeta() Getter for the beta-coefficients of the polynomials in this layer.
| |
| getCoeffEta | back to summary |
|---|---|
| public short[] getCoeffEta() Getter for the eta-coefficients of the polynomials in this layer.
| |
| getCoeffGamma | back to summary |
|---|---|
| public short[][] getCoeffGamma() Getter for the gamma-coefficients of the polynomials in this layer.
| |
| getOi | back to summary |
|---|---|
| public int getOi() Getter for the number of Oil variables of this layer.
| |
| getVi | back to summary |
|---|---|
| public int getVi() Getter for the number of vinegar variables of this layer.
| |
| getViNext | back to summary |
|---|---|
| public int getViNext() Getter for the number of vinegar variables of the next layer.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| plugInVinegars | back to summary |
|---|---|
| public short[][] plugInVinegars(short[] x) This method plugs in the vinegar variables into the polynomials of this layer and computes the coefficients of the Oil-variables as well as the free coefficient in each polynomial. It is needed for computing the Oil variables while signing.
| |