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.

28 lines
725 B

  1. #if !defined(_FUSION_SXS_CSTREAMTAP_H_INCLUDED_)
  2. #define _FUSION_SXS_CSTREAMTAP_H_INCLUDED_
  3. #pragma once
  4. #include "fusionsha1.h"
  5. class CTeeStreamWithHash : public CTeeStream
  6. {
  7. CFusionHash m_hCryptHash;
  8. PRIVATIZE_COPY_CONSTRUCTORS(CTeeStreamWithHash);
  9. public:
  10. CTeeStreamWithHash() { }
  11. virtual ~CTeeStreamWithHash() { }
  12. //
  13. // Actual things that do work
  14. //
  15. CFusionHash &GetCryptHash() { return m_hCryptHash; }
  16. BOOL InitCryptHash( ALG_ID aid ) { return m_hCryptHash.Win32Initialize(aid);}
  17. STDMETHODIMP Read(void *pv, ULONG cb, ULONG *pcbRead);
  18. STDMETHODIMP Seek( LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER * pulMove );
  19. };
  20. #endif