mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
703 B
43 lines
703 B
#ifndef __NT_RSA_H__
|
|
#define __NT_RSA_H__
|
|
|
|
#include "md2.h"
|
|
#include "md4.h"
|
|
#include "md5.h"
|
|
#include "sha.h"
|
|
#include "rc2.h"
|
|
#include "rc4.h"
|
|
#include "des.h"
|
|
#include "modes.h"
|
|
|
|
/* nt_rsa.h
|
|
*
|
|
* Stuff local to NameTag, but necessary for the RSA library.
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// This structure keeps state for MD4 hashing.
|
|
typedef struct MD4stuff
|
|
{
|
|
MDstruct MD; // MD4's state
|
|
BOOL FinishFlag;
|
|
DWORD BufLen;
|
|
BYTE Buf[MD4BLOCKSIZE];// staging buffer
|
|
} MD4_object;
|
|
|
|
typedef struct MD2stuff
|
|
{
|
|
MD2_CTX MD; // MD2's state
|
|
BOOL FinishFlag;
|
|
} MD2_object;
|
|
|
|
#define MD2DIGESTLEN 16
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // __NT_RSA_H__
|