35 Commits

Author SHA1 Message Date
Albert Astals Cid
8b171279e9 clazy: enable qstring allocation warning 2020-02-13 01:07:24 +01:00
Albert Astals Cid
5e2751fe85 clazy: enable level1 2020-01-29 16:53:08 +01:00
Albert Astals Cid
c685525849 Fix compilation with older Qt 2020-01-27 15:21:03 +01:00
Albert Astals Cid
dbef5838d4 Enable QT_NO_SIGNALS_SLOTS_KEYWORDS 2020-01-22 19:31:28 +01:00
Albert Astals Cid
416d89268e ciphertest: Test all providers 2020-01-20 20:02:02 +01:00
Albert Astals Cid
d71f4c279b Drop Qt4 support 2020-01-19 17:19:23 +01:00
Ivan Romanov
57878ff44f Add support for AES GCM and AES CCM modes
Only qca-openssl now can use GCM and CCM. CCM is not tested and
planed for future.
2016-09-19 10:48:11 +05:00
Ivan Romanov
6a685d6b0b Refactor cipherunittest 2016-08-09 11:26:47 +05:00
Ivan Romanov
759ff45dba Fix indents in cipherunittest 2016-08-09 10:48:36 +05:00
Ivan Romanov
ac8b8acd37 dropped fixpaths.include
Use qt.conf to set plugin paths for unittests and qcatool in buildtree
2014-09-25 14:27:44 +06:00
Ivan Romanov
9504d1c8e0 cmake: put all runtime to bin when compiling
The most it is need for windows where no rpath and all dll's must be
in the same dir (or in PATH environment)
2014-02-02 02:35:55 +06:00
Ivan Romanov
a917dc3a93 cipherunittest: check result after finish()
In common case update() function can not returns data.
So it is not a wrong. But after finish() all data must be returned.
2014-01-30 00:47:06 +06:00
Ivan Romanov
7d7535216a cipherunittest: disable qca-gcrypt for some tests
Seems Cipher support is not finished in qca-gcrypt. When it will be
done need to enable them again.
2014-01-03 22:33:43 +06:00
Ivan Romanov
6d690c0070 Build static QCA
Added new cmake variable SHARED_LIBRARY. By default is on.
When it is off QCA library, plugins, tools, examples and unittests
will be built as static. Also if is used static Qt plugins will be
built as static. Tested with Qt4.
2014-01-02 03:50:18 +06:00
Ivan Romanov
9462469bb5 dropped bat, qconf and qmake rules
Now cmake rules fully works.
2013-08-26 00:55:17 +06:00
Ivan Romanov
13d0dc5e6d added cmake variable QCA_LIB_SUFFIX
QCA_LIB_SUFFIX intended to replace workaround
3 major version. For building for Qt5 can be used
-DQCA_LIB_SUFFIX=qt5 for example. Result will be
named libqca2-qt5.so.2.0.3 library for Linux.
Also this suffix will be applied for qca2 pkg config file,
qcatool2 binary and qcatool2 manpage.

I hope that is a good way to resolve the building conflict
against qt4 and qt5.
2013-08-26 00:55:01 +06:00
Ivan Romanov
be172d527a fixed previous commit 2013-08-25 13:05:48 +06:00
Ivan Romanov
4320c6532b [qca-ossl] added support for aes ctr 128, 192 and 256 2013-08-25 03:36:58 +06:00
Brad Hards
eb73d89811 Add unit test for CAST5.
svn path=/trunk/kdesupport/qca/; revision=707708
2007-09-02 18:50:34 +00:00
Brad Hards
113fe64aac Remove TODO that is now done.
svn path=/trunk/kdesupport/qca/; revision=696969
2007-08-06 12:12:14 +00:00
Brad Hards
55c43acae1 Add unit tests for encryption/decryption using
AES 128, 192 and 256 with PKCS7 padding.

svn path=/trunk/kdesupport/qca/; revision=696964
2007-08-06 12:05:08 +00:00
Brad Hards
6302b633dc Change the target for the qmake/qconf based unit tests to be
"make test", to match cmake.


svn path=/trunk/kdesupport/qca/; revision=685629
2007-07-09 10:52:52 +00:00
Justin Karneges
6152c977c0 follow qca-openssl -> qca-ossl rename
svn path=/trunk/kdesupport/qca/; revision=681691
2007-06-29 21:30:22 +00:00
Justin Karneges
841a205069 remove unnecessary secure array usage in arrayToHex
svn path=/trunk/kdesupport/qca/; revision=674778
2007-06-13 02:30:43 +00:00
Brad Hards
231f7f8eb8 Switch Cipher::blockSize to return int, rather than unsigned int.
I think unsigned int was a bit more descriptive, but certainly
is non-standard.

svn path=/trunk/kdesupport/qca/; revision=670664
2007-06-02 11:22:26 +00:00
Justin Karneges
5c6439a6c1 by default, all unittests/examples are console without a mac.app bundle
svn path=/trunk/kdesupport/qca/; revision=656265
2007-04-20 20:08:47 +00:00
Justin Karneges
e6a4a57edd update to build against the right qca lib name
svn path=/trunk/kdesupport/qca/; revision=648311
2007-03-30 23:42:53 +00:00
Brad Hards
131bf8eaac Add automated unittesting support. Now, you can
just "make test" and it will run the appropriate
tests.

svn path=/trunk/kdesupport/qca/; revision=609827
2006-12-02 11:53:32 +00:00
André Wöbbeking
07197dc54e -pedantic
svn path=/trunk/kdesupport/qca/; revision=608497
2006-11-27 18:17:05 +00:00
Brad Hards
854f5518bc Add NSS to the providers that we test for Cipher.
svn path=/trunk/kdesupport/qca/; revision=597053
2006-10-19 10:04:23 +00:00
Brad Hards
5faf60a73c Remove unused header file.
svn path=/trunk/kdesupport/qca/; revision=594703
2006-10-12 02:13:07 +00:00
Brad Hards
977dc93ac4 Merge .h into .cpp, and add CMake support
svn path=/trunk/kdesupport/qca/; revision=594701
2006-10-12 02:11:35 +00:00
Brad Hards
11d097e08d Finally commit the big "primitives" API change.
Essentially if you had previously used a subclass
of Cipher, Hash or MAC, then you need to change
your code. The change is pretty simple - you
just pass a string name as the first argument.


svn path=/trunk/kdesupport/qca/; revision=576204
2006-08-23 12:38:39 +00:00
Brad Hards
b0474cde5d convert over the symmetric key and hmac tests.
Also update cipherunittest to remove non-required deletion.

svn path=/trunk/kdesupport/qca/; revision=498274
2006-01-15 08:54:59 +00:00
Brad Hards
b15d8ae8aa Convert the old symmetric cipher tests to use
QTestLib. Also fixed up some problems in the test
suite.

svn path=/trunk/kdesupport/qca/; revision=498252
2006-01-15 05:17:47 +00:00