/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class ICrypt
 *   Interface for encryption/decryption, hashing, etc.
 *--------------------------------------------------------------------------
 * @created: Monday, October 18, 2004 11:30:21
 */

#if !defined(ICrypt_h_included)
#define ICrypt_h_included
//forward declaration of this class might require
namespace shared
{ class ICrypt; };
#include <zmodeler.h>


namespace shared
{
  
  class ICrypt : public ZUnknown
  {
  public:
    virtual DWORD getDataHash(tBYTESeq& seq, DWORD nFuncID=0)=0;
    virtual DWORD getHash(DWORD dwVal, DWORD nFuncID=0)=0;
    virtual ZRESULT decrypt(DWORD dwHash, tBYTESeq& seq)=0;
    virtual ZRESULT encrypt(DWORD dwHash, tBYTESeq& seq)=0;
  
  };//class ICrypt
};//shared

#endif
