Top Fields Constructors Methods
org.bouncycastle.pqc.legacy.crypto.rainbow

public Class RainbowPrivateKeyParameters

extends RainbowKeyParameters
Class Inheritance

Field Summary

Modifier and TypeField and Description
private short[][]
private short[][]
private short[]
private short[]
private Layer[]
private int[]

Constructor Summary

AccessConstructor and Description
public
RainbowPrivateKeyParameters(short[][]
the inverse of A1(the matrix part of the affine linear map L1) (n-v1 x n-v1 matrix)
A1inv
,
short[]
translation vector, part of the linear affine map L1
b1
,
short[][]
the inverse of A2(the matrix part of the affine linear map L2) (n x n matrix)
A2inv
,
short[]
translation vector, part of the linear affine map L2
b2
,
int[]
the number of Vinegar-variables per layer
vi
,
Layer[]
the polynomials with their coefficients of private map F
layers
)

Constructor

Method Summary

Modifier and TypeMethod and Description
public short[]

Returns:

b1 the translation part of L1
getB1
()

Getter for the translation part of the private quadratic map L1.

public short[]

Returns:

b2 the translation part of L2
getB2
()

Getter for the translation part of the private quadratic map L2.

public short[][]

Returns:

the A1inv inverse
getInvA1
()

Getter for the inverse matrix of A1.

public short[][]

Returns:

the A2inv
getInvA2
()

Getter for the inverse matrix of A2

public Layer[]

Returns:

layers
getLayers
()

Returns the layers contained in the private key

public int[]

Returns:

the vi
getVi
()

/** Returns the array of vi-s

Inherited from org.bouncycastle.pqc.legacy.crypto.rainbow.RainbowKeyParameters:
getDocLength

Field Detail

A1invback to summary
private short[][] A1inv
A2invback to summary
private short[][] A2inv
b1back to summary
private short[] b1
b2back to summary
private short[] b2
layersback to summary
private Layer[] layers
viback to summary
private int[] vi

Constructor Detail

RainbowPrivateKeyParametersback to summary
public RainbowPrivateKeyParameters(short[][] A1inv, short[] b1, short[][] A2inv, short[] b2, int[] vi, Layer[] layers)

Constructor

Parameters
A1inv:short[][]

the inverse of A1(the matrix part of the affine linear map L1) (n-v1 x n-v1 matrix)

b1:short[]

translation vector, part of the linear affine map L1

A2inv:short[][]

the inverse of A2(the matrix part of the affine linear map L2) (n x n matrix)

b2:short[]

translation vector, part of the linear affine map L2

vi:int[]

the number of Vinegar-variables per layer

layers:Layer[]

the polynomials with their coefficients of private map F

Method Detail

getB1back to summary
public short[] getB1()

Getter for the translation part of the private quadratic map L1.

Returns:short[]

b1 the translation part of L1

getB2back to summary
public short[] getB2()

Getter for the translation part of the private quadratic map L2.

Returns:short[]

b2 the translation part of L2

getInvA1back to summary
public short[][] getInvA1()

Getter for the inverse matrix of A1.

Returns:short[][]

the A1inv inverse

getInvA2back to summary
public short[][] getInvA2()

Getter for the inverse matrix of A2

Returns:short[][]

the A2inv

getLayersback to summary
public Layer[] getLayers()

Returns the layers contained in the private key

Returns:Layer[]

layers

getViback to summary
public int[] getVi()

/** Returns the array of vi-s

Returns:int[]

the vi