genKATShortMsg.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include "Keccak.h"

Include dependency graph for genKATShortMsg.cpp:


Defines

#define MAX_MARKER_LEN   50
#define SUBMITTER_INFO_LEN   128
#define SqueezingOutputLength   4096

Typedefs

typedef unsigned char BitSequence

Enumerations

enum  STATUS_CODES {
  KAT_SUCCESS = 0, KAT_FILE_OPEN_ERROR = 1, KAT_HEADER_ERROR = 2, KAT_DATA_ERROR = 3,
  KAT_HASH_ERROR = 4
}

Functions

STATUS_CODES genShortMsg (int hashbitlen)
int FindMarker (FILE *infile, const char *marker)
int ReadHex (FILE *infile, BitSequence *A, int Length, char *str)
void fprintBstr (FILE *fp, char *S, BitSequence *A, int L)
void genKATShortMsg_main ()
void fromNISTConventionToInternalConvention (BitSequence *Msg, int msglen)

Define Documentation

#define MAX_MARKER_LEN   50

#define SqueezingOutputLength   4096

#define SUBMITTER_INFO_LEN   128


Typedef Documentation

typedef unsigned char BitSequence


Enumeration Type Documentation

Enumerator:
KAT_SUCCESS 
KAT_FILE_OPEN_ERROR 
KAT_HEADER_ERROR 
KAT_DATA_ERROR 
KAT_HASH_ERROR 


Function Documentation

int FindMarker ( FILE *  infile,
const char *  marker 
)

void fprintBstr ( FILE *  fp,
char *  S,
BitSequence A,
int  L 
)

void fromNISTConventionToInternalConvention ( BitSequence Msg,
int  msglen 
)

void genKATShortMsg_main (  ) 

STATUS_CODES genShortMsg ( int  hashbitlen  ) 

int ReadHex ( FILE *  infile,
BitSequence A,
int  Length,
char *  str 
)


Generated on Thu Jun 17 18:20:21 2010 for KeccakTools by  doxygen 1.5.6