windows-nt/Source/XPSP1/NT/base/win32/fusion/sxs/cstreamtap.h

30 lines
669 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#pragma once
#include "fusionsha1.h"
class CTeeStreamWithHash : public CTeeStream
{
CFusionHash m_hCryptHash;
PRIVATIZE_COPY_CONSTRUCTORS(CTeeStreamWithHash);
public:
SMARTTYPEDEF(CTeeStreamWithHash);
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 );
};
SMARTTYPE(CTeeStreamWithHash);