00001 00002 00003 00004 #pragma once 00005 00006 namespace AppSecInc 00007 { 00008 namespace Crypt 00009 { 00013 class MicrosoftCryptProvider 00014 { 00015 private: 00016 HCRYPTPROV _hprov; 00017 public: 00018 HCRYPTPROV Peek() const { return _hprov; } 00019 void Initialize(); 00020 void UnInitialize(); 00021 MicrosoftCryptProvider(); 00022 ~MicrosoftCryptProvider(); 00027 std::vector<BYTE> GenerateRandom(DWORD dwLen); 00028 }; 00029 } 00030 }
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |