~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/algorithm/sha1.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * @brief SHA1 Declarations
8
8
 */
9
9
 
10
 
#ifndef DRIZZLED_ALGORITHM_SHA1_H
11
 
#define DRIZZLED_ALGORITHM_SHA1_H
 
10
#pragma once
12
11
 
13
12
#include <stdint.h>
14
13
#include <sys/types.h>
15
14
#include <string.h>
16
15
 
 
16
#include <drizzled/visibility.h>
 
17
 
17
18
namespace drizzled
18
19
{
19
20
 
45
46
    }
46
47
} SHA1_CTX;
47
48
 
48
 
void SHA1Init(SHA1_CTX *);
49
 
void SHA1Pad(SHA1_CTX *);
50
 
void SHA1Transform(uint32_t [5], const uint8_t [SHA1_BLOCK_LENGTH]);
51
 
void SHA1Update(SHA1_CTX *, const uint8_t *, size_t);
52
 
void SHA1Final(uint8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *);
 
49
DRIZZLED_API void SHA1Init(SHA1_CTX *);
 
50
DRIZZLED_API void SHA1Pad(SHA1_CTX *);
 
51
DRIZZLED_API void SHA1Transform(uint32_t [5], const uint8_t [SHA1_BLOCK_LENGTH]);
 
52
DRIZZLED_API void SHA1Update(SHA1_CTX *, const uint8_t *, size_t);
 
53
DRIZZLED_API void SHA1Final(uint8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *);
53
54
 
54
55
/** @} */
55
56
 
56
57
} /* namespace drizzled */
57
58
 
58
 
#endif /* DRIZZLED_ALGORITHM_SHA1_H */