~ubuntu-branches/debian/sid/dico/sid

« back to all changes in this revision

Viewing changes to gnu/sha1.h

  • Committer: Bazaar Package Importer
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2010-07-08 12:08:56 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100708120856-nsqktvovscghtbcm
* New upstream release (Closes: #588403)
* Refreshed patch dicoweb-debian.diff
* Removed patches that are applied upstream:
  0001-Speed-up-output-procedure-in-dictorg.patch,
  improve_dicoweb.patch
* debian/rules: Upstream renamed settings.py to settings-sample.py,
  hence install settings-sample.py in /etc/dicoweb/
* debian/control:
  + Bumped Standards-Version to 3.9.0, no changes needed.
  + Drop XB-Python-Version fields and ${python:Provides}, as they are not
    needed.
  + Set DMUA (after approval of Marc Dequènes (Duck) <duck@debian.org>)
  + Remove libdico from Depends field of dico & dicod, it should be
    added automatically.
  + Remove python-dev from B-D, since python-all-dev is there
  + Add libldap2-dev to B-D to compile LDAP module.
  + Add list of included modules in dicod extended description.
* debian/dicod.conf:
  + Match everything strategy is disabled by not loading the stratall
    module.
  + Added a commented section to enable substr strategy.
* debian/dicod.install: Install ldap, substr & stratall modules in dicod
* debian/dico-module-*.install: For pluggable modules, only install the .so
  files.
* debian/dico-dev.install: Do not install .la file
  (See: http://wiki.debian.org/ReleaseGoals/LAFileRemoval)
* debian/watch: Add check for bzip2'ed tarballs
* Renamed libdico package due to bumped sonames
* debian/libdico1.symbols: Updated symbols
* Merge dictorg & outline modules into dicod package.
* debian/dicod.conf: Enable dictorg module by default (Closes: #588402).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- buffer-read-only: t -*- vi: set ro: */
 
2
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
 
3
/* Declarations of functions and data types used for SHA1 sum
 
4
   library functions.
 
5
   Copyright (C) 2000, 2001, 2003, 2005, 2006, 2008, 2009, 2010 Free Software
 
6
   Foundation, Inc.
 
7
 
 
8
   This program is free software; you can redistribute it and/or modify it
 
9
   under the terms of the GNU General Public License as published by the
 
10
   Free Software Foundation; either version 3, or (at your option) any
 
11
   later version.
 
12
 
 
13
   This program is distributed in the hope that it will be useful,
 
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
   GNU General Public License for more details.
 
17
 
 
18
   You should have received a copy of the GNU General Public License
 
19
   along with this program; if not, write to the Free Software Foundation,
 
20
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
21
 
 
22
#ifndef SHA1_H
 
23
# define SHA1_H 1
 
24
 
 
25
# include <stdio.h>
 
26
# include <stdint.h>
 
27
 
 
28
# ifdef __cplusplus
 
29
extern "C" {
 
30
# endif
 
31
 
 
32
#define SHA1_DIGEST_SIZE 20
 
33
 
 
34
/* Structure to save state of computation between the single steps.  */
 
35
struct sha1_ctx
 
36
{
 
37
  uint32_t A;
 
38
  uint32_t B;
 
39
  uint32_t C;
 
40
  uint32_t D;
 
41
  uint32_t E;
 
42
 
 
43
  uint32_t total[2];
 
44
  uint32_t buflen;
 
45
  uint32_t buffer[32];
 
46
};
 
47
 
 
48
 
 
49
/* Initialize structure containing state of computation. */
 
50
extern void sha1_init_ctx (struct sha1_ctx *ctx);
 
51
 
 
52
/* Starting with the result of former calls of this function (or the
 
53
   initialization function update the context for the next LEN bytes
 
54
   starting at BUFFER.
 
55
   It is necessary that LEN is a multiple of 64!!! */
 
56
extern void sha1_process_block (const void *buffer, size_t len,
 
57
                                struct sha1_ctx *ctx);
 
58
 
 
59
/* Starting with the result of former calls of this function (or the
 
60
   initialization function update the context for the next LEN bytes
 
61
   starting at BUFFER.
 
62
   It is NOT required that LEN is a multiple of 64.  */
 
63
extern void sha1_process_bytes (const void *buffer, size_t len,
 
64
                                struct sha1_ctx *ctx);
 
65
 
 
66
/* Process the remaining bytes in the buffer and put result from CTX
 
67
   in first 20 bytes following RESBUF.  The result is always in little
 
68
   endian byte order, so that a byte-wise output yields to the wanted
 
69
   ASCII representation of the message digest.  */
 
70
extern void *sha1_finish_ctx (struct sha1_ctx *ctx, void *resbuf);
 
71
 
 
72
 
 
73
/* Put result from CTX in first 20 bytes following RESBUF.  The result is
 
74
   always in little endian byte order, so that a byte-wise output yields
 
75
   to the wanted ASCII representation of the message digest.  */
 
76
extern void *sha1_read_ctx (const struct sha1_ctx *ctx, void *resbuf);
 
77
 
 
78
 
 
79
/* Compute SHA1 message digest for bytes read from STREAM.  The
 
80
   resulting message digest number will be written into the 20 bytes
 
81
   beginning at RESBLOCK.  */
 
82
extern int sha1_stream (FILE *stream, void *resblock);
 
83
 
 
84
/* Compute SHA1 message digest for LEN bytes beginning at BUFFER.  The
 
85
   result is always in little endian byte order, so that a byte-wise
 
86
   output yields to the wanted ASCII representation of the message
 
87
   digest.  */
 
88
extern void *sha1_buffer (const char *buffer, size_t len, void *resblock);
 
89
 
 
90
# ifdef __cplusplus
 
91
}
 
92
# endif
 
93
 
 
94
#endif