10 Commits

Author SHA1 Message Date
Brad Hards
e1ef70f4f4 Update unit tests to reflect recent API changes
svn path=/trunk/kdesupport/qca/; revision=398876
2005-03-19 01:00:29 +00:00
Brad Hards
d312792004 Big fixup of the unit test harness, and each unit test case, to match
the new Qt4 stuff, and the removal of QCString from the API

When I run this, I get:
# Running normal tests... #

Base64UnitTest - 22 tests passed, 0 tests failed

BigIntUnitTest - 252 tests passed, 0 tests failed

CertUnitTest - 0 tests passed, 1 test failed
    Unexpected failure:
        certunittest.cpp[40]: failed on "QCA::haveSystemStore()"
                 result = '0', expected = '1'

CipherUnitTest - 2740 tests passed, 0 tests failed

HashUnitTest - 186 tests passed, 0 tests failed

HexUnitTest - 17 tests passed, 0 tests failed

KDFUnitTest - 0 tests passed, 0 tests failed; also 2 skipped
    Skipped tests:
        kdfunittest.cpp[80]: "PBKDF version 1 with SHA1 not supported"
        kdfunittest.cpp[98]: "PBKDF version 2 with SHA1 not supported"

KeyLengthUnitTest - 9 tests passed, 0 tests failed

MACUnitTest - 33 tests passed, 0 tests failed

RandomUnitTest - 67 tests passed, 0 tests failed

SecureArrayUnitTest - 32 tests passed, 0 tests failed

StaticUnitTest - 31 tests passed, 0 tests failed

SymmetricKeyUnitTest - 13 tests passed, 0 tests failed

# Done with normal tests:
  Total test cases: 13
  Total test steps                                 : 3405
    Total passed test steps (including unexpected) : 3402
      Total unexpected passed test steps           :  0
    Total failed test steps (including expected)   :  1
      Total expected failed test steps             :  0
    Total skipped test steps                       :  2

CCMAIL: delta-affinix.com@lists.affinix.com

svn path=/trunk/kdesupport/qca/; revision=394072
2005-03-01 11:15:25 +00:00
Brad Hards
9e3e39fa56 Make the first QtCrypto part of the include path, not the #include
statement.
You also get some bonus Hex tests.

svn path=/trunk/kdesupport/qca/; revision=374575
2005-01-01 05:11:34 +00:00
Brad Hards
5364172b16 Update unit tests to use new include style.
Also includes a few little cleanups as well.

svn path=/trunk/kdesupport/qca/; revision=374573
2005-01-01 04:20:34 +00:00
Brad Hards
e9904cbae1 DES. Lots of tests, still some issues.
svn path=/trunk/kdesupport/qca/; revision=366839
2004-11-28 11:10:21 +00:00
Brad Hards
382daa7c1a Change test cases over to use the enum padding approach.
svn path=/trunk/kdesupport/qca/; revision=366743
2004-11-27 20:58:23 +00:00
Brad Hards
878b226ff4 Update unit tests to reflect the correct approach to update() and final(),
as well as adding in checks of ok().

svn path=/trunk/kdesupport/qca/; revision=366591
2004-11-27 10:33:35 +00:00
Brad Hards
de4e286913 Lots more tests for various algorithms and modes. Most of these tests
were extracted from Botan.

svn path=/trunk/kdesupport/qca/; revision=365390
2004-11-23 09:15:09 +00:00
Brad Hards
cfc27fe278 Some simple AES tests (128, 192, 256) for ECB. They are run as
encryption and decryption.
We now have 555 passing test cases, although there is a scary amount
of additional testing (which will doubtless show a few more bugs) that
is required for these Cipher classes.

svn path=/trunk/kdesupport/qca/; revision=364696
2004-11-21 07:04:00 +00:00
Brad Hards
244723d71d Update the kunittest framework, fixing a bug that hid skipped tests
when there was also at least one failing step.

Add in some cipher tests - really simple AES128 for now, but at least
its a start...

svn path=/trunk/kdesupport/qca/; revision=364424
2004-11-20 05:46:38 +00:00