~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/algorithm/sha1.h

  • Committer: lbieber at stabletransit
  • Date: 2010-10-14 15:43:11 UTC
  • mfrom: (1848.1.4 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101014154311-ojsrl9uz80yvizey
Merge Travis - changing struct to C++ classes
Merge Andrew - fix bug #571579: libdrizzle unexpected hang up when using in extremely slow networking environment
Merge Andrew - fix bug #643772: Large rows cannot be read if packet_size exceeds max buffer size
Merge Andrew - fix bug #660082: libdrizzle missing rev.147
Merge Andrew - fix bug 653234: drizzledump (and other clients?) should print Password: prompt on stderr
Merge Andrew - fix bug #653438: "Enter password" prompt should not print stars, or erase them on enter
Merge Andrew - fix bug 659824: Drizzle client UTF8 processing endless loop

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include <sys/types.h>
15
15
#include <string.h>
16
16
 
17
 
#include "drizzled/visibility.h"
18
 
 
19
17
namespace drizzled
20
18
{
21
19
 
22
20
/**
23
21
 * @addtogroup sha1 SHA-1 in C
24
 
 * 
25
 
 * This file is based on public domain code.
26
 
 * Initial source code is in the public domain, 
27
 
 * so clarified by Steve Reid <steve@edmweb.com>
28
 
 *
 
22
 * By Steve Reid <steve@edmweb.com>
 
23
 * 100% Public Domain
29
24
 * @{
30
25
 */
31
26
 
47
42
    }
48
43
} SHA1_CTX;
49
44
 
50
 
DRIZZLED_API void SHA1Init(SHA1_CTX *);
51
 
DRIZZLED_API void SHA1Pad(SHA1_CTX *);
52
 
DRIZZLED_API void SHA1Transform(uint32_t [5], const uint8_t [SHA1_BLOCK_LENGTH]);
53
 
DRIZZLED_API void SHA1Update(SHA1_CTX *, const uint8_t *, size_t);
54
 
DRIZZLED_API void SHA1Final(uint8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *);
 
45
void SHA1Init(SHA1_CTX *);
 
46
void SHA1Pad(SHA1_CTX *);
 
47
void SHA1Transform(uint32_t [5], const uint8_t [SHA1_BLOCK_LENGTH]);
 
48
void SHA1Update(SHA1_CTX *, const uint8_t *, size_t);
 
49
void SHA1Final(uint8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *);
55
50
 
56
51
/** @} */
57
52