mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Renamed to GNUPG
This commit is contained in:
parent
9119f2bf59
commit
5a05af2bca
144 changed files with 1279 additions and 1035 deletions
25
cipher/md5.h
25
cipher/md5.h
|
@ -1,14 +1,14 @@
|
|||
/* md5.h - message digest 5
|
||||
* Copyright (c) 1997 by Werner Koch (dd9jn)
|
||||
* Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
*
|
||||
* This file is part of G10.
|
||||
* This file is part of GNUPG.
|
||||
*
|
||||
* G10 is free software; you can redistribute it and/or modify
|
||||
* GNUPG is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* G10 is distributed in the hope that it will be useful,
|
||||
* GNUPG is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
@ -23,17 +23,16 @@
|
|||
#include "types.h"
|
||||
|
||||
typedef struct {
|
||||
u32 i[2]; /* number of _bits_ handled mod 2^64 */
|
||||
u32 buf[4]; /* scratch buffer */
|
||||
int count;
|
||||
byte in[64]; /* input buffer */
|
||||
byte digest[16+8+1]; /* actual digest after Final call */
|
||||
u32 A,B,C,D; /* chaining variables */
|
||||
u32 total[2];
|
||||
u32 buflen;
|
||||
char buffer[128];
|
||||
} MD5_CONTEXT;
|
||||
|
||||
|
||||
void md5_init( MD5_CONTEXT *c );
|
||||
void md5_write( MD5_CONTEXT *hd, byte *inbuf, size_t inlen);
|
||||
void md5_final( MD5_CONTEXT *hd);
|
||||
#define md5_read(h) ( (h)->digest )
|
||||
void md5_init( MD5_CONTEXT *ctx );
|
||||
void md5_write( MD5_CONTEXT *ctx, const void *buffer, size_t len);
|
||||
void md5_final( MD5_CONTEXT *ctx);
|
||||
#define md5_read(h) ( (h)->buffer )
|
||||
|
||||
#endif /*G10_MD5_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue