~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/sha1.h

Removed dead variable, sorted authors file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
typedef struct SHA1_CONTEXT
47
47
{
48
48
  uint64_t  Length;             /* Message length in bits      */
49
 
  uint32_t Intermediate_Hash[SHA1_HASH_SIZE/4]; /* Message Digest  */
 
49
  uint32 Intermediate_Hash[SHA1_HASH_SIZE/4]; /* Message Digest  */
50
50
  int Computed;                 /* Is the digest computed?         */
51
51
  int Corrupted;                /* Is the message digest corrupted? */
52
 
  int16_t Message_Block_Index;  /* Index into message block array   */
53
 
  uint8_t Message_Block[64];    /* 512-bit message blocks      */
 
52
  int16 Message_Block_Index;    /* Index into message block array   */
 
53
  uint8 Message_Block[64];      /* 512-bit message blocks      */
54
54
} SHA1_CONTEXT;
55
55
 
56
56
/*
57
57
  Function Prototypes
58
58
*/
59
59
 
60
 
#ifdef __cplusplus
61
 
extern "C" {
62
 
#endif
63
 
 
64
 
  int mysql_sha1_reset(SHA1_CONTEXT*);
65
 
  int mysql_sha1_input(SHA1_CONTEXT*, const uint8_t *, unsigned int);
66
 
  int mysql_sha1_result(SHA1_CONTEXT* , uint8_t Message_Digest[SHA1_HASH_SIZE]);
67
 
 
68
 
#ifdef __cplusplus
69
 
}
70
 
#endif
 
60
C_MODE_START
 
61
 
 
62
int mysql_sha1_reset(SHA1_CONTEXT*);
 
63
int mysql_sha1_input(SHA1_CONTEXT*, const uint8 *, unsigned int);
 
64
int mysql_sha1_result(SHA1_CONTEXT* , uint8 Message_Digest[SHA1_HASH_SIZE]);
 
65
 
 
66
C_MODE_END