Leaked source code of windows server 2003
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.
 
 
 
 
 
 

29 lines
725 B

#if !defined(_FUSION_SXS_CSTREAMTAP_H_INCLUDED_)
#define _FUSION_SXS_CSTREAMTAP_H_INCLUDED_
#pragma once
#include "fusionsha1.h"
class CTeeStreamWithHash : public CTeeStream
{
CFusionHash m_hCryptHash;
PRIVATIZE_COPY_CONSTRUCTORS(CTeeStreamWithHash);
public:
CTeeStreamWithHash() { }
virtual ~CTeeStreamWithHash() { }
//
// Actual things that do work
//
CFusionHash &GetCryptHash() { return m_hCryptHash; }
BOOL InitCryptHash( ALG_ID aid ) { return m_hCryptHash.Win32Initialize(aid);}
STDMETHODIMP Read(void *pv, ULONG cb, ULONG *pcbRead);
STDMETHODIMP Seek( LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER * pulMove );
};
#endif