Botan

GOST 28147-89

License
Botan is released under the Simplified BSD License (see LICENSE.md)

The GOST 28147-89 block cipher uses a set of 4 bit Sboxes, however the standard does not actually define these Sboxes; they are considered a local configuration issue. Several different sets are used.


const ubyte  sboxEntry(size_t row, size_t col);

Parameters
size_t row the row
size_t col the column
Returns
sbox entry at this row/column

const string  paramName();

Returns
name of this parameter set

this(in string name = "R3411_94_TestParam");

Default GOST parameters are the ones given in GOST R 34.11 for testing purposes; these sboxes are also used by Crypto++, and, at least according to Wikipedia, the Central Bank of Russian Federation

Parameters
string name of the parameter set

class  GOST_28147_89: botan.block.block_cipher.BlockCipherFixedParams!(8LU, 32LU, 0LU, 1LU).BlockCipherFixedParams, botan.block.block_cipher.BlockCipher, botan.algo_base.sym_algo.SymmetricAlgorithm;

GOST 28147-89


this(in GOST_28147_89_Params param);

Parameters
GOST_28147_89_Params param the sbox parameters to use