cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Classes | Macros | Functions
rand_x917.c File Reference
#include "crypt.h"
#include "random/random_int.h"
#include "device/capabil.h"

Go to the source code of this file.

Classes

struct  X917_MCT_TESTDATA
 
struct  X917_VST_TESTDATA
 

Macros

#define tdesEncrypt(data, key)
 
#define RNG_TEST_NIST   0
 
#define RNG_TEST_INFOGARD   1
 
#define RNG_TEST_FIPSEVAL   2
 
#define RNG_TEST_VALUES   RNG_TEST_INFOGARD
 
#define VST_ITERATIONS   64
 

Functions

CHECK_RETVAL_BOOL STDC_NONNULL_ARG ((1))
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2, 3))
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2))
 
CHECK_RETVAL int randomAlgorithmSelfTest (void)
 
CHECK_RETVAL int selfTestX917 (INOUT RANDOM_INFO *testRandomInfo, IN_BUFFER_C(X917_KEYSIZE) const BYTE *key)
 
CHECK_RETVAL int fipsTestX917 (INOUT RANDOM_INFO *testRandomInfo)
 

Macro Definition Documentation

#define RNG_TEST_FIPSEVAL   2

Definition at line 303 of file rand_x917.c.

#define RNG_TEST_INFOGARD   1

Definition at line 302 of file rand_x917.c.

#define RNG_TEST_NIST   0

Definition at line 301 of file rand_x917.c.

#define RNG_TEST_VALUES   RNG_TEST_INFOGARD

Definition at line 305 of file rand_x917.c.

#define tdesEncrypt (   data,
  key 
)
Value:
des_ecb3_encrypt( ( C_Block * ) ( data ), ( C_Block * ) ( data ), \
( key )->desKey1, ( key )->desKey2, \
( key )->desKey3, DES_ENCRYPT )

Definition at line 89 of file rand_x917.c.

#define VST_ITERATIONS   64

Definition at line 310 of file rand_x917.c.

Function Documentation

CHECK_RETVAL int fipsTestX917 ( INOUT RANDOM_INFO testRandomInfo)

Definition at line 631 of file rand_x917.c.

CHECK_RETVAL int randomAlgorithmSelfTest ( void  )

Definition at line 575 of file rand_x917.c.

CHECK_RETVAL int selfTestX917 ( INOUT RANDOM_INFO testRandomInfo,
IN_BUFFER_C(X917_KEYSIZE) const BYTE key 
)

Definition at line 598 of file rand_x917.c.

CHECK_RETVAL_BOOL STDC_NONNULL_ARG ( (1)  )

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Definition at line 24 of file rand_x917.c.

CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2, 3)  )

Definition at line 96 of file rand_x917.c.

CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2)  )

Definition at line 160 of file rand_x917.c.