lcx_groestl.h | Developers

lcx_groestl.h

Back to the files list

GROESTL hash function. More...

Data Structures

struct  hashState_s
 Hash state. More...
struct  cx_groestl_s
 Groestl context. More...

Macros

#define ROWS   8
#define COLS1024   16
#define SIZE1024   (ROWS * COLS1024)

Typedefs

typedef unsigned char BitSequence
typedef struct hashState_s hashState
typedef struct cx_groestl_s cx_groestl_t
 Convenience type. More...

Functions

cx_err_t cx_groestl_init_no_throw (cx_groestl_t *hash, size_t size)
 Initializes a GROESTL context. More...
static int cx_groestl_init (cx_groestl_t *hash, unsigned int size)
 Initializes a GROESTL context. More...

Detailed Description

GROESTL hash function.

Refer to GROESTL info for more details.

Macro Definition Documentation

COLS1024

#define COLS1024   16

ROWS

#define ROWS   8

SIZE1024

#define SIZE1024   (ROWS * COLS1024)

Typedef Documentation

BitSequence

typedef unsigned char BitSequence

cx_groestl_t

typedef struct cx_groestl_s cx_groestl_t

Convenience type.

hashState

typedef struct hashState_s hashState

Function Documentation

cx_groestl_init()

static int cx_groestl_init ( cx_groestl_t hash,
unsigned int  size 
)

Initializes a GROESTL context.

Throws an exception if the initialization fails.

Parameters
[out]hashPointer to the context to initialize.
[in]sizeLength of the digest.
Returns
GROESTL identifier.
Exceptions
CX_INVALID_PARAMETER

cx_groestl_init_no_throw()

cx_err_t cx_groestl_init_no_throw ( cx_groestl_t hash,
size_t  size 
)

Initializes a GROESTL context.

Parameters
[out]hashPointer to the context to init.ialize.
[in]sizeLength of the digest.
Returns
Error code:
  • CX_OK on success
  • CX_INVALID_PARAMETER

Back to the files list


Did you find this page helpful?


How would you improve this page for developers?



Getting Started
Theme Features
Customization

Nano Apps