~ubuntu-branches/ubuntu/trusty/rhash/trusty

« back to all changes in this revision

Viewing changes to librhash/md5.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexey S Kravchenko
  • Date: 2011-06-15 01:03:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110615010334-ochayini7ut2djvs
Tags: 1.2.6-1
* New upstream release version 1.2.6
 - ABI changed - now librhash0.0 is librhash0
 - OpenSSL support for faster hash calculation if libssl is installed
   (fully optional) for both rhash and librhash0

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
/* algorithm context */
14
14
typedef struct md5_ctx
15
15
{
16
 
  unsigned message[md5_block_size/4]; /* 512-bit buffer for leftovers */
17
 
  uint64_t length;   /* number of processed bytes */
18
 
  unsigned hash[4];  /* 128-bit algorithm internal hashing state */
 
16
        unsigned message[md5_block_size/4]; /* 512-bit buffer for leftovers */
 
17
        uint64_t length;   /* number of processed bytes */
 
18
        unsigned hash[4];  /* 128-bit algorithm internal hashing state */
19
19
} md5_ctx;
20
20
 
21
21
/* hash functions */
22
22
 
23
 
void md5_init(md5_ctx *ctx);
24
 
void md5_update(md5_ctx *ctx, const unsigned char* msg, size_t size);
25
 
void md5_final(md5_ctx *ctx, unsigned char result[16]);
 
23
void rhash_md5_init(md5_ctx *ctx);
 
24
void rhash_md5_update(md5_ctx *ctx, const unsigned char* msg, size_t size);
 
25
void rhash_md5_final(md5_ctx *ctx, unsigned char result[16]);
26
26
 
27
27
#ifdef __cplusplus
28
28
} /* extern "C" */