Source code of Windows XP (NT5)
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.

45 lines
1.6 KiB

  1. #ifndef __AWGLOBAL32_H__
  2. #define __AWGLOBAL32_H__ 1
  3. #include <windows.h>
  4. #include "rsa.h"
  5. #define BSAFE_PTR far *
  6. #define UWORD WORD
  7. #define ULONG DWORD
  8. #define RSAM ((DWORD)'R'+((DWORD)'S'<<8)+((DWORD)'A'<<16)+((DWORD)'M'<<24))
  9. void B_ADD_32(LPDWORD, LPDWORD, LPDWORD, DWORD);
  10. void B_SUB_32(LPDWORD, LPDWORD, LPDWORD, DWORD);
  11. void B_INC_32(LPDWORD, DWORD);
  12. void B_DEC_32(LPDWORD, DWORD);
  13. void B_CONST_32(LPDWORD, DWORD, DWORD);
  14. void B_2EXP_32(LPDWORD, DWORD, DWORD);
  15. DWORD B_ACC_32(LPDWORD, DWORD, LPDWORD, DWORD);
  16. DWORD B_LENW_32(LPDWORD, DWORD);
  17. DWORD B_LEN_32(LPDWORD, DWORD);
  18. void B_PSQ_32(LPDWORD, LPDWORD, DWORD);
  19. void B_PMPYL_32(LPDWORD, LPDWORD, LPDWORD, DWORD);
  20. int B_CMP_32(LPDWORD, LPDWORD, DWORD);
  21. void B_QRX_32(LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, DWORD, DWORD);
  22. void B_PMPY_32(LPDWORD, LPDWORD, LPDWORD, DWORD);
  23. void MOD_SQX_32(LPDWORD, LPDWORD, LPDWORD, DWORD, DWORD);
  24. void MOD_MPYX_32(LPDWORD, LPDWORD, LPDWORD, LPDWORD, DWORD, DWORD);
  25. void B_PDIV_32(LPDWORD, LPDWORD, LPDWORD, LPDWORD, DWORD, DWORD);
  26. void B_PEGCD_32(LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, DWORD);
  27. void MOD_EXP_32(LPDWORD, LPDWORD, LPDWORD, LPDWORD, DWORD);
  28. void B_UNEXP_32(LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD);
  29. void BSAFE_ENC_DEC_PUBLIC_PRIVATE_32(LPBSAFE_KEY, LPBYTE, LPBYTE, WORD);
  30. LPVOID IFGlobalAlloc32(WORD, DWORD);
  31. void IFGlobalFree32(LPVOID);
  32. typedef struct {
  33. DWORD FEE[MAXMODWORDS]; /* encryption exponent */
  34. DWORD FPP[MAXPRMWORDS]; /* first prime */
  35. DWORD FQQ[MAXPRMWORDS]; /* second prime */
  36. DWORD FNN[MAXMODWORDS]; /* modulus n = p * q */
  37. } FRAME_32, FAR *LPFRAME_32;
  38. #endif