forked from brainpicture/hashlib
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to freeBSD md5 lib, add md4, sha
- Loading branch information
1 parent
98580af
commit 67c3b1f
Showing
29 changed files
with
3,690 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version = 0x105010 | ||
tools = [{'tool': 'ar', 'tooldir': None, 'funs': None}, {'tool': 'cxx', 'tooldir': None, 'funs': None}, {'tool': 'gxx', 'tooldir': None, 'funs': None}, {'tool': 'compiler_cxx', 'tooldir': None, 'funs': None}, {'tool': 'node_addon', 'tooldir': None, 'funs': None}] | ||
tools = [{'tool': 'ar', 'tooldir': None, 'funs': None}, {'tool': 'cxx', 'tooldir': None, 'funs': None}, {'tool': 'gxx', 'tooldir': None, 'funs': None}, {'tool': 'compiler_cxx', 'tooldir': None, 'funs': None}, {'tool': 'cc', 'tooldir': None, 'funs': None}, {'tool': 'gcc', 'tooldir': None, 'funs': None}, {'tool': 'compiler_cc', 'tooldir': None, 'funs': None}, {'tool': 'node_addon', 'tooldir': None, 'funs': None}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* MD4.H - header file for MD4C.C | ||
* $FreeBSD: src/lib/libmd/md4.h,v 1.11.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $ | ||
*/ | ||
|
||
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All | ||
rights reserved. | ||
License to copy and use this software is granted provided that it | ||
is identified as the "RSA Data Security, Inc. MD4 Message-Digest | ||
Algorithm" in all material mentioning or referencing this software | ||
or this function. | ||
License is also granted to make and use derivative works provided | ||
that such works are identified as "derived from the RSA Data | ||
Security, Inc. MD4 Message-Digest Algorithm" in all material | ||
mentioning or referencing the derived work. | ||
RSA Data Security, Inc. makes no representations concerning either | ||
the merchantability of this software or the suitability of this | ||
software for any particular purpose. It is provided "as is" | ||
without express or implied warranty of any kind. | ||
These notices must be retained in any copies of any part of this | ||
documentation and/or software. | ||
*/ | ||
|
||
#ifndef _MD4_H_ | ||
#define _MD4_H_ | ||
|
||
#include <sys/types.h> | ||
|
||
/* MD4 context. */ | ||
typedef struct MD4Context { | ||
u_int32_t state[4]; /* state (ABCD) */ | ||
u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ | ||
unsigned char buffer[64]; /* input buffer */ | ||
} MD4_CTX; | ||
|
||
void MD4Init(MD4_CTX *); | ||
void MD4Update(MD4_CTX *, const void *, unsigned int); | ||
void MD4Pad(MD4_CTX *); | ||
void MD4Final(unsigned char [16], MD4_CTX *); | ||
|
||
#endif /* _MD4_H_ */ |
Oops, something went wrong.