home *** CD-ROM | disk | FTP | other *** search
- #ifndef __UTILITY_H__
- #define __UTILITY_H__
-
- /* Xceed Encryption Library - RSASign Sample Application
- * Copyright (c) 2001 Xceed Software Inc.
- *
- * [Utility.h]
- *
- * This utility header files contains declarations of useful
- * functions.
- *
- * This file is part of the Xceed Encryption Library sample
- * applications. The source code in this file is only intended as
- * a supplement to Xceed Encryption Library's documentation,
- * and is provided "as is", without warranty of any kind, either
- * expressed or implied.
- */
-
- bool WriteHexValueToFile( LPCSTR szFileName,
- BYTE* pcBinaryValue,
- short nBinaryValueSize );
-
- bool ReadHexValueFromFile( LPCSTR szFileName,
- BYTE** ppcBinaryValue,
- short* pnBinaryValueSize );
-
- void HexToBinary( LPCSTR szHexValue,
- BYTE** ppcBinaryValue,
- short* pnBinaryValueSize );
-
- void BinaryToHex( BYTE* pcBinaryValue,
- short nBinaryValueSize,
- char** pszHexValue );
-
- void DisplayLastError();
-
-
- #endif // __UTILITY_H__
-