TestSymmetricCipher.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (C) 2010 Felix Geyer <debfx@fobos.de>
  3. * Copyright (C) 2017 KeePassXC Team <team@keepassxc.org>
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 or (at your option)
  8. * version 3 of the License.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef KEEPASSX_TESTSYMMETRICCIPHER_H
  19. #define KEEPASSX_TESTSYMMETRICCIPHER_H
  20. #include <QObject>
  21. class TestSymmetricCipher : public QObject
  22. {
  23. Q_OBJECT
  24. private slots:
  25. void initTestCase();
  26. void testCipherUuidToMode();
  27. void testEncryptionDecryption_data();
  28. void testEncryptionDecryption();
  29. void testAesCbcPadding_data();
  30. void testAesCbcPadding();
  31. void testAesKdf();
  32. void testTwofish256CbcEncryption();
  33. void testTwofish256CbcDecryption();
  34. void testSalsa20();
  35. void testChaCha20();
  36. void testPadding();
  37. void testStreamReset();
  38. };
  39. #endif // KEEPASSX_TESTSYMMETRICCIPHER_H