PuttyTools.h 1.1 KB

12345678910111213141516171819
  1. //---------------------------------------------------------------------------
  2. #ifndef PuttyToolsH
  3. #define PuttyToolsH
  4. //---------------------------------------------------------------------------
  5. enum TKeyType { ktUnopenable, ktUnknown, ktSSH1, ktSSH2, ktOpenSSH, ktSSHCom };
  6. TKeyType KeyType(UnicodeString FileName);
  7. UnicodeString KeyTypeName(TKeyType KeyType);
  8. //---------------------------------------------------------------------------
  9. __int64 __fastcall ParseSize(UnicodeString SizeStr);
  10. //---------------------------------------------------------------------------
  11. bool __fastcall HasGSSAPI(UnicodeString CustomPath);
  12. //---------------------------------------------------------------------------
  13. void __fastcall AES256EncodeWithMAC(char * Data, size_t Len, const char * Password,
  14. size_t PasswordLen, const char * Salt);
  15. //---------------------------------------------------------------------------
  16. UnicodeString __fastcall NormalizeFingerprint(UnicodeString Fingerprint);
  17. UnicodeString __fastcall KeyTypeFromFingerprint(UnicodeString Fingerprint);
  18. //---------------------------------------------------------------------------
  19. #endif