Cryptography.h 1008 B

123456789101112131415161718
  1. //---------------------------------------------------------------------------
  2. #ifndef CryptographyH
  3. #define CryptographyH
  4. //---------------------------------------------------------------------------
  5. void __fastcall CryptographyInitialize();
  6. void __fastcall CryptographyFinalize();
  7. RawByteString __fastcall ScramblePassword(UnicodeString Password);
  8. bool __fastcall UnscramblePassword(RawByteString Scrambled, UnicodeString & Password);
  9. void __fastcall AES256EncyptWithMAC(RawByteString Input, UnicodeString Password,
  10. RawByteString & Output);
  11. bool __fastcall AES256DecryptWithMAC(RawByteString Input, UnicodeString Password,
  12. RawByteString & Output);
  13. void __fastcall AES256CreateVerifier(UnicodeString Input, RawByteString & Verifier);
  14. bool __fastcall AES256Verify(UnicodeString Input, RawByteString Verifier);
  15. int __fastcall IsValidPassword(UnicodeString Password);
  16. int __fastcall PasswordMaxLength();
  17. //---------------------------------------------------------------------------
  18. #endif