Albert Astals Cid
6a1d268315
Enable QT_NO_CAST_FROM_BYTEARRAY
2020-01-23 17:26:29 +01:00
Albert Astals Cid
dbef5838d4
Enable QT_NO_SIGNALS_SLOTS_KEYWORDS
2020-01-22 19:31:28 +01:00
Albert Astals Cid
80f58d05f0
Fix BotanHKDFContext::clone
...
And excercise it in the unittest
2020-01-21 17:41:24 +01:00
Albert Astals Cid
4449dd088b
Fix KDFContex clone in botan/gcrypt
...
And excercise that from the unittest
2020-01-21 01:19:50 +01:00
Albert Astals Cid
29c7d98898
Fix MACContext clone in botan/gcrypt/nss
...
And excercise that from the unittest
2020-01-21 01:12:07 +01:00
Albert Astals Cid
0ce2b3927e
Fix HashContext in botan/gcrypt/nss
...
And make sure the hashunittest exercises them
2020-01-21 00:54:10 +01:00
Albert Astals Cid
156dd01575
hashunittest: Make finding the files easier
2020-01-20 23:16:15 +01:00
Albert Astals Cid
24df5ea742
hashunittest: Fail not warn if test files can't be found
2020-01-20 23:12:30 +01:00
Albert Astals Cid
bdb0e9d37d
hashunittest: test all providers
2020-01-20 23:03:31 +01:00
Albert Astals Cid
416d89268e
ciphertest: Test all providers
2020-01-20 20:02:02 +01:00
Laurent Montel
acb45eeb84
Use nullptr
2020-01-20 13:37:51 +01:00
Albert Astals Cid
694abbcafa
kdfunittest: Test all the backends
...
and be less verbose when a backend doesn't support what we're testing,
it's fine if the some other one does
2020-01-20 01:01:02 +01:00
Albert Astals Cid
70406170f5
Cleanup Qt version checks
2020-01-19 17:57:35 +01:00
Albert Astals Cid
0816a04f42
qSort -> std::sort
2020-01-19 17:35:06 +01:00
Albert Astals Cid
d71f4c279b
Drop Qt4 support
2020-01-19 17:19:23 +01:00
Albert Astals Cid
3293100c42
remove slot that was declared but never implemented
2020-01-19 17:01:19 +01:00
Albert Astals Cid
00d311d90f
Add override
2020-01-19 16:28:44 +01:00
Albert Astals Cid
691395e193
BigInteger: Test the toArray/fromArray
2020-01-19 12:16:37 +01:00
Alexander Volkov
f57d661416
Introduce HKDF
...
Summary:
It's needed for implementation of Secret Service:
https://specifications.freedesktop.org/secret-service/ch07s03.html
Reviewers: iromanov, sitter, #frameworks, dfaure
Reviewed By: dfaure
Subscribers: dfaure
Differential Revision: https://phabricator.kde.org/D15510
2018-10-15 14:30:05 +03:00
Harald Sitter
ee536fd995
Merge remote-tracking branch 'origin/v2.1'
2018-03-22 12:02:31 +01:00
Fabian Vogt
d58e20ee65
Add support for OpenSSL 1.1.0
...
Test Plan:
Ran the testsuite with OpenSSL 1.1.0g and 1.0.2j, all passed.
Using this code with kdeconnect and okteta successfully on my system now.
Reviewers: iromanov
Subscribers: anthonyfieroni, alonbl, heikobecker, cfeck, asturmlechner, bero, rdieter
Differential Revision: https://phabricator.kde.org/D9416
2018-01-04 20:02:38 +01:00
Ivan Romanov
159e144abf
Disable missed openssl cipher suites
...
Fedora 26 has no them.
2017-09-30 15:45:59 +05:00
Ivan Romanov
89800d4341
tlsunittest: disable some ciphers
2017-02-06 17:29:01 +05:00
Ivan Romanov
28245c731e
Add base64 convenience functions
2016-09-19 10:48:11 +05: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
4694e4f1d7
dsaunittest: check for DSA_1024 is supported
2014-11-05 12:12:47 +05:00
Ivan Romanov
8ca9ddb56b
keygenunittest: check that DLGroup supports DSA_* algorythmes
2014-11-05 12:06:58 +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
2cdd6c4bd1
tlsunittest: disable more ciphers
2014-09-20 01:02:52 +06:00
Ivan Romanov
a8a26e0bf7
pgpunittests: increase timeout for crypting operations
2014-09-20 00:44:51 +06:00
Ivan Romanov
7268472226
pgpunittests: gpg keyring supports writing. See commit b6db383609d6b017dd2b9ae3809fc259c6397501
2014-09-20 00:02:21 +06:00
Ivan Romanov
fe4971ccf1
pgpunittest: fixed start from any directory
2014-09-18 23:24:51 +06:00
Sune Vuorela
df6e7a2377
Fix qt4 build
2014-09-08 15:41:07 +02:00
Florian Fieber
869b20e64b
Add unit tests for expired subkey issue
...
If a key has a non-related, expired signing subkey, any operation on this key
previously would fail, claiming the key is expired.
REVIEW: 118567
2014-09-08 18:15:20 +06:00
Sune Vuorela
1acc18cf38
Fix a couple of crashes where all plugins might not be available.
...
REVIEW: 120094
2014-09-08 10:16:57 +02: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
e2ff4f0a61
new cmake option DEVELOPER_MODE
...
DEVELOPER_MODE is designed for various developer issues. Now this mode
forced to use plugins only from build tree. To avoid excess plugins
from system QCA. Also now not need to set QT_PLUGIN_PATH to use plugins
from QCA build tree.
2014-01-07 04:47:18 +06:00
Ivan Romanov
e5ec390625
fix hardcoded plugins path for unittests
2014-01-07 00:24:49 +06:00
Adnan RIHAN
9e0ddb716d
Overloaded "makeKey" to derive a password depending on a time factor
...
Overloaded "makeKey" in QCA::KeyDerivationFunction + botan/gcrypt/ossl plugins
to allow deriving a master password depending on a time factor in addition to
only giving an arbitrary iteration count.
Deriving with a time delays exhaustive research on master passwords by
increasing the time needed to try each password (the derivation time)
Added corresponding unittests.
REVIEW: 114503
2014-01-06 18:38:21 +01:00
Ivan Romanov
2817b31e06
pgpunittest: copy keys* folders to keys*_work
...
gpg changes trustdb.gpg. But this file under vcs. So just copy this
file to another folder.
2014-01-06 00:42:44 +06:00
Ivan Romanov
b0c8788d9a
tlsunittest: don't check some cipher suites
...
openssl very configurable. There is no any guarantee that this
or another cipher suite will be in current building. So I just
took that Fedora cipher suites is minimal default list and
I believe that it will be true in every case.
2014-01-05 01:54:18 +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
c820094625
filewatchunittest: show 'please wait' message
2014-01-03 19:43:45 +06:00
Ivan Romanov
01e2b1d1cd
enabled filewatchunittest
...
also fixed cmake building of this unittest
2014-01-03 19:34:19 +06:00
Bartosz Brachaczek
506d9ef311
Add unloadProvider() function for symmetry with insertProvider()
...
REVIEW: 114690
2014-01-02 17:23:42 +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
Adnan RIHAN
17cf1841f7
RSA Keys are permutable, can encrypt with private and decrypt with public
...
[REVIEW]: 114416
2013-12-17 06:57:26 +01:00