Source code of Windows XP (NT5)
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
669 B

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