File: gost.h

package info (click to toggle)
arj 3.10.22-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,964 kB
  • sloc: ansic: 33,002; makefile: 2,014; sh: 1,587; asm: 436
file content (28 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * $Id: gost.h,v 1.1.1.1 2002/03/28 00:02:55 andrew_belov Exp $
 * ---------------------------------------------------------------------------
 * Prototypes of the functions and declarations of  data structures located in
 * GOST.C are stored here.
 *
 */

#ifndef GOST_INCLUDED
#define GOST_INCLUDED

/* Encryption-related constants */

#define GSH_BITS                  11    /* Used in bit shifts */
#define KEYGEN_ITERATIONS       2048    /* Number of key generation cycles */

/* Predefined patterns */

#define GOST_I_PAT_LO     0x01010101
#define GOST_I_PAT_HI     0x01010104

/* Prototypes */

void calc_gost_pattern();
unsigned long gost_term(unsigned long data);

#endif