Types and Values
gost28147_param_test_3411
#define gost28147_param_test_3411 _gnutls_gost28147_param_test_3411
gost28147_param_CryptoPro_3411
#define gost28147_param_CryptoPro_3411 _gnutls_gost28147_param_CryptoPro_3411
gost28147_param_Test_89
#define gost28147_param_Test_89 _gnutls_gost28147_param_Test_89
gost28147_param_CryptoPro_A
#define gost28147_param_CryptoPro_A _gnutls_gost28147_param_CryptoPro_A
gost28147_param_CryptoPro_B
#define gost28147_param_CryptoPro_B _gnutls_gost28147_param_CryptoPro_B
gost28147_param_CryptoPro_C
#define gost28147_param_CryptoPro_C _gnutls_gost28147_param_CryptoPro_C
gost28147_param_CryptoPro_D
#define gost28147_param_CryptoPro_D _gnutls_gost28147_param_CryptoPro_D
gost28147_param_TC26_Z
#define gost28147_param_TC26_Z _gnutls_gost28147_param_TC26_Z
gost28147_encrypt_simple
#define gost28147_encrypt_simple _gnutls_gost28147_encrypt_simple
gost28147_decrypt_simple
#define gost28147_decrypt_simple _gnutls_gost28147_decrypt_simple
gost28147_set_key
#define gost28147_set_key _gnutls_gost28147_set_key
gost28147_set_param
#define gost28147_set_param _gnutls_gost28147_set_param
gost28147_encrypt
#define gost28147_encrypt _gnutls_gost28147_encrypt
gost28147_encrypt_for_cfb
#define gost28147_encrypt_for_cfb _gnutls_gost28147_encrypt_for_cfb
gost28147_decrypt
#define gost28147_decrypt _gnutls_gost28147_decrypt
gost28147_cnt_init
#define gost28147_cnt_init _gnutls_gost28147_cnt_init
gost28147_cnt_set_iv
#define gost28147_cnt_set_iv _gnutls_gost28147_cnt_set_iv
gost28147_cnt_crypt
#define gost28147_cnt_crypt _gnutls_gost28147_cnt_crypt
gost28147_kdf_cryptopro
#define gost28147_kdf_cryptopro _gnutls_gost28147_kdf_cryptopro
gost28147_key_wrap_cryptopro
#define gost28147_key_wrap_cryptopro _gnutls_gost28147_key_wrap_cryptopro
gost28147_key_unwrap_cryptopro
#define gost28147_key_unwrap_cryptopro _gnutls_gost28147_key_unwrap_cryptopro
gost28147_imit_set_key
#define gost28147_imit_set_key _gnutls_gost28147_imit_set_key
gost28147_imit_set_nonce
#define gost28147_imit_set_nonce _gnutls_gost28147_imit_set_nonce
gost28147_imit_set_param
#define gost28147_imit_set_param _gnutls_gost28147_imit_set_param
gost28147_imit_update
#define gost28147_imit_update _gnutls_gost28147_imit_update
gost28147_imit_digest
#define gost28147_imit_digest _gnutls_gost28147_imit_digest
GOST28147_KEY_SIZE
#define GOST28147_KEY_SIZE 32
GOST28147_BLOCK_SIZE
#define GOST28147_BLOCK_SIZE 8
struct gost28147_ctx
struct gost28147_ctx {
uint32_t key[GOST28147_KEY_SIZE/4];
const uint32_t *sbox;
int key_meshing;
int key_count; /* Used for key meshing */
};
struct gost28147_param
struct gost28147_param {
int key_meshing;
uint32_t sbox[4*256];
};
struct gost28147_cnt_ctx
struct gost28147_cnt_ctx {
struct gost28147_ctx ctx;
size_t bytes;
uint32_t iv[2];
uint8_t buffer[GOST28147_BLOCK_SIZE];
};
GOST28147_IMIT_DIGEST_SIZE
#define GOST28147_IMIT_DIGEST_SIZE 4
GOST28147_IMIT_BLOCK_SIZE
#define GOST28147_IMIT_BLOCK_SIZE GOST28147_BLOCK_SIZE
GOST28147_IMIT_KEY_SIZE
#define GOST28147_IMIT_KEY_SIZE GOST28147_KEY_SIZE
struct gost28147_imit_ctx
struct gost28147_imit_ctx {
struct gost28147_ctx cctx;
uint64_t count; /* Block count */
uint8_t block[GOST28147_IMIT_BLOCK_SIZE]; /* Block buffer */
unsigned index; /* Into buffer */
uint32_t state[GOST28147_IMIT_BLOCK_SIZE/4];
};