OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Typedefs | Functions | Variables
gost89.h File Reference

Go to the source code of this file.

Classes

struct  gost_subst_block
 
struct  gost_ctx
 

Typedefs

typedef unsigned long u4
 
typedef unsigned char byte
 
typedef unsigned long word32
 

Functions

void gost_enc (gost_ctx *ctx, const byte *clear, byte *cipher, int blocks)
 
void gost_dec (gost_ctx *ctx, const byte *cipher, byte *clear, int blocks)
 
void gost_enc_cfb (gost_ctx *ctx, const byte *iv, const byte *clear, byte *cipher, int blocks)
 
void gost_dec_cfb (gost_ctx *ctx, const byte *iv, const byte *cipher, byte *clear, int blocks)
 
void gostcrypt (gost_ctx *c, const byte *in, byte *out)
 
void gostdecrypt (gost_ctx *c, const byte *in, byte *out)
 
void gost_key (gost_ctx *ctx, const byte *key)
 
void gost_get_key (gost_ctx *ctx, byte *key)
 
void gost_init (gost_ctx *ctx, const gost_subst_block *subst_block)
 
void gost_destroy (gost_ctx *ctx)
 
void gost_enc_with_key (gost_ctx *, byte *key, byte *inblock, byte *outblock)
 
int gost_mac (gost_ctx *ctx, int hmac_len, const unsigned char *data, unsigned int data_len, unsigned char *hmac)
 
int gost_mac_iv (gost_ctx *ctx, int hmac_len, const unsigned char *iv, const unsigned char *data, unsigned int data_len, unsigned char *hmac)
 
void mac_block (gost_ctx *c, byte *buffer, const byte *block)
 
void get_mac (byte *buffer, int nbits, byte *out)
 
void cryptopro_key_meshing (gost_ctx *ctx, unsigned char *iv)
 

Variables

gost_subst_block GostR3411_94_TestParamSet
 
gost_subst_block GostR3411_94_CryptoProParamSet
 
gost_subst_block Gost28147_TestParamSet
 
gost_subst_block Gost28147_CryptoProParamSetA
 
gost_subst_block Gost28147_CryptoProParamSetB
 
gost_subst_block Gost28147_CryptoProParamSetC
 
gost_subst_block Gost28147_CryptoProParamSetD
 
const byte CryptoProKeyMeshingKey []
 

Typedef Documentation

typedef unsigned char byte

Definition at line 20 of file gost89.h.

typedef unsigned long u4

Definition at line 17 of file gost89.h.

typedef unsigned long word32

Definition at line 93 of file gost89.h.

Function Documentation

void cryptopro_key_meshing ( gost_ctx ctx,
unsigned char *  iv 
)

Definition at line 398 of file gost89.c.

void get_mac ( byte buffer,
int  nbits,
byte out 
)

Definition at line 347 of file gost89.c.

void gost_dec ( gost_ctx ctx,
const byte cipher,
byte clear,
int  blocks 
)

Definition at line 217 of file gost89.c.

void gost_dec_cfb ( gost_ctx ctx,
const byte iv,
const byte cipher,
byte clear,
int  blocks 
)

Definition at line 247 of file gost89.c.

void gost_destroy ( gost_ctx ctx)

Definition at line 306 of file gost89.c.

void gost_enc ( gost_ctx ctx,
const byte clear,
byte cipher,
int  blocks 
)

Definition at line 206 of file gost89.c.

void gost_enc_cfb ( gost_ctx ctx,
const byte iv,
const byte clear,
byte cipher,
int  blocks 
)

Definition at line 229 of file gost89.c.

void gost_enc_with_key ( gost_ctx ,
byte key,
byte inblock,
byte outblock 
)

Definition at line 266 of file gost89.c.

void gost_get_key ( gost_ctx ctx,
byte key 
)

Definition at line 283 of file gost89.c.

void gost_init ( gost_ctx ctx,
const gost_subst_block subst_block 
)

Definition at line 296 of file gost89.c.

void gost_key ( gost_ctx ctx,
const byte key 
)

Definition at line 273 of file gost89.c.

int gost_mac ( gost_ctx ctx,
int  hmac_len,
const unsigned char *  data,
unsigned int  data_len,
unsigned char *  hmac 
)

Definition at line 359 of file gost89.c.

int gost_mac_iv ( gost_ctx ctx,
int  hmac_len,
const unsigned char *  iv,
const unsigned char *  data,
unsigned int  data_len,
unsigned char *  hmac 
)

Definition at line 378 of file gost89.c.

void gostcrypt ( gost_ctx c,
const byte in,
byte out 
)

Definition at line 140 of file gost89.c.

void gostdecrypt ( gost_ctx c,
const byte in,
byte out 
)

Definition at line 173 of file gost89.c.

void mac_block ( gost_ctx c,
byte buffer,
const byte block 
)

Definition at line 318 of file gost89.c.

Variable Documentation

const byte CryptoProKeyMeshingKey[]

Definition at line 110 of file gost89.c.

gost_subst_block Gost28147_CryptoProParamSetA

Definition at line 61 of file gost89.c.

gost_subst_block Gost28147_CryptoProParamSetB

Definition at line 72 of file gost89.c.

gost_subst_block Gost28147_CryptoProParamSetC

Definition at line 84 of file gost89.c.

gost_subst_block Gost28147_CryptoProParamSetD

Definition at line 97 of file gost89.c.

gost_subst_block Gost28147_TestParamSet

Definition at line 45 of file gost89.c.

gost_subst_block GostR3411_94_CryptoProParamSet

Definition at line 33 of file gost89.c.

gost_subst_block GostR3411_94_TestParamSet

Definition at line 22 of file gost89.c.