move to the pseudo-standard APIs for md4,md5,sha
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7815 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1995 - 2000 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -46,13 +46,14 @@
|
||||
#include <ktypes.h>
|
||||
#endif
|
||||
|
||||
struct sha {
|
||||
unsigned int offset;
|
||||
unsigned int sz;
|
||||
struct sha1 {
|
||||
unsigned int sz[2];
|
||||
u_int32_t counter[5];
|
||||
unsigned char save[64];
|
||||
};
|
||||
|
||||
void sha_init (struct sha *m);
|
||||
void sha_update (struct sha *m, const void *v, size_t len);
|
||||
void sha_finito (struct sha *m, void *res);
|
||||
typedef struct sha1 SHA1_CTX;
|
||||
|
||||
void SHA1Init (struct sha1 *m);
|
||||
void SHA1Update (struct sha1 *m, const void *v, size_t len);
|
||||
void SHA1Final (void *res, struct sha1 *m);
|
||||
|
Reference in New Issue
Block a user