home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / Chip_2002-09_cd1.bin / zkuste / vbasic / Data / Utils / XZipComp.exe / XceedEncryption.Cab / F112992_Utility.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-06-28  |  1.1 KB  |  39 lines

  1. #ifndef __UTILITY_H__
  2. #define __UTILITY_H__
  3.  
  4. /* Xceed Encryption Library - RSASign Sample Application
  5.  * Copyright (c) 2001 Xceed Software Inc.
  6.  *
  7.  * [Utility.h]
  8.  *
  9.  * This utility header files contains declarations of useful
  10.  * functions.
  11.  *
  12.  * This file is part of the Xceed Encryption Library sample 
  13.  * applications. The source code in this file is only intended as 
  14.  * a supplement to Xceed Encryption Library's documentation, 
  15.  * and is provided "as is", without warranty of any kind, either 
  16.  * expressed or implied. 
  17.  */
  18.  
  19. bool WriteHexValueToFile( LPCSTR szFileName, 
  20.                           BYTE* pcBinaryValue, 
  21.                           short nBinaryValueSize );
  22.  
  23. bool ReadHexValueFromFile( LPCSTR szFileName, 
  24.                            BYTE** ppcBinaryValue, 
  25.                            short* pnBinaryValueSize );
  26.  
  27. void HexToBinary( LPCSTR szHexValue, 
  28.                   BYTE** ppcBinaryValue, 
  29.                   short* pnBinaryValueSize );
  30.  
  31. void BinaryToHex( BYTE* pcBinaryValue,
  32.                   short nBinaryValueSize,
  33.                   char** pszHexValue );
  34.  
  35. void DisplayLastError();
  36.  
  37.  
  38. #endif // __UTILITY_H__
  39.