~ubuntu-dev/ubuntu/lucid/mutt/lucid-201002110857

« back to all changes in this revision

Viewing changes to md5.h

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-06-07 17:30:03 UTC
  • mto: (16.2.1 experimental) (2.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090607173003-rg37ui3h2bbv7wl0
Tags: upstream-1.5.19
ImportĀ upstreamĀ versionĀ 1.5.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Declaration of functions and data types used for MD5 sum computing
2
2
   library functions.
3
 
   Copyright (C) 1995-1997,1999-2005 Free Software Foundation, Inc.
 
3
   Copyright (C) 1995-1997,1999,2000,2001,2004,2005,2006,2008
 
4
      Free Software Foundation, Inc.
4
5
 
5
6
   NOTE: The canonical source of this file is maintained with the GNU C
6
7
   Library.  Bugs can be reported to bug-glibc@prep.ai.mit.edu.
51
52
# endif
52
53
#endif
53
54
 
54
 
#ifndef __attribute__
55
 
# if ! __GNUC_PREREQ (2,8) || __STRICT_ANSI__
56
 
#  define __attribute__(x)
57
 
# endif
58
 
#endif
59
 
 
60
55
#ifndef _LIBC
61
56
# define __md5_buffer md5_buffer
62
57
# define __md5_finish_ctx md5_finish_ctx
79
74
 
80
75
  md5_uint32 total[2];
81
76
  md5_uint32 buflen;
82
 
  char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32))));
 
77
  md5_uint32 buffer[32];
83
78
};
84
79
 
85
80
/*
108
103
/* Process the remaining bytes in the buffer and put result from CTX
109
104
   in first 16 bytes following RESBUF.  The result is always in little
110
105
   endian byte order, so that a byte-wise output yields to the wanted
111
 
   ASCII representation of the message digest.
112
 
 
113
 
   IMPORTANT: On some systems it is required that RESBUF be correctly
114
 
   aligned for a 32 bits value.  */
 
106
   ASCII representation of the message digest.  */
115
107
extern void *__md5_finish_ctx (struct md5_ctx *ctx, void *resbuf) __THROW;
116
108
 
117
109
 
118
110
/* Put result from CTX in first 16 bytes following RESBUF.  The result is
119
111
   always in little endian byte order, so that a byte-wise output yields
120
 
   to the wanted ASCII representation of the message digest.
121
 
 
122
 
   IMPORTANT: On some systems it is required that RESBUF is correctly
123
 
   aligned for a 32 bits value.  */
 
112
   to the wanted ASCII representation of the message digest.  */
124
113
extern void *__md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) __THROW;
125
114
 
126
115