603 Commits

Author SHA1 Message Date
Ivan Romanov
58e9539513 qca-ossl: added missed signatures 2014-11-06 12:16:27 +05:00
Ivan Romanov
13050bf00d cmake: plugins on Mac OS must use .dylib suffix 2014-11-05 22:42:32 +05:00
Ivan Romanov
638a8aff5c qca-ossl: no DSA_* dl groups in FIPS specification 2014-11-05 11:49:14 +05:00
Ivan Romanov
6ee6f7f22a qca-gnupg: more refactoring 2014-10-07 04:26:33 +06:00
Ivan Romanov
9b8f978bff qca-gnupg: refactoring
Moved GpgAction to separate file.
2014-10-07 04:26:30 +06:00
Ivan Romanov
90b1287e52 qca-gnupg: some optimization in LineConverter 2014-10-07 02:01:17 +06:00
Ivan Romanov
5d28790cb5 qca-gnupg: refactoring
Moved LineConverter class to separate file
2014-10-07 01:14:14 +06:00
Ivan Romanov
47fc70af6e qca-gnupg: correct way to reset gpg proccess 2014-10-05 22:08:05 +06:00
Ivan Romanov
de02538aaf qca-gnupg: try to fix SIGPIPE again 2014-09-30 17:20:27 +06:00
Ivan Romanov
38eae11512 qca-gnupg: fixed SIGPIPE
need always close stding only after all data will be written
2014-09-30 04:58:15 +06:00
Ivan Romanov
f38eee2d18 qca-gnupg: refactoring 2014-09-29 15:20:13 +06:00
Ivan Romanov
380710aae0 qca-gnupg: refactoring
Moved find_bin, escape_string and unescape_string to separated source
file.
2014-09-29 02:24:13 +06:00
Ivan Romanov
fe0d1ad5c0 qca-gnupg: dropped ugly hack 2014-09-29 01:47:47 +06:00
Ivan Romanov
efb8da2402 qca-gnupg: dropped workaround for old unsupported Qt 2014-09-29 01:35:52 +06:00
Ivan Romanov
54e8363ddf qca-gnupg: cleaned trash 2014-09-29 01:21:24 +06:00
Ivan Romanov
d598c689b7 cmake: no install target in developer mode 2014-09-28 21:14:26 +06:00
Ivan Romanov
686c8cac9a qca-gnupg: cleaned trash 2014-09-28 18:28:04 +06:00
Ivan Romanov
f0a5b957fc qca-gnupg: good debug message
Output diagnostic text to console if defined GPGOP_DEBUG
2014-09-28 18:22:59 +06:00
Ivan Romanov
c00da86463 cmake: don't check for gpg program
gpg program is runtime dependency. Plugin can be built without it.
2014-09-27 00:53:47 +06:00
Ivan Romanov
3ebc9c14e2 SafeTimer: many fixes
1. SafeTimer now is common and public class. All plugins use this
   implementation.
2. Added debug messages in SafeTimer. Uncomment SAFETIMER_DEBUG to
   enable.
3. TimerFixer skips SafeTimer objects. No need extra fixes for
   SafeTimer. But can be problems with children of SafeTimer I
   believe no such.
2014-09-25 07:26:24 +06:00
Ivan Romanov
192243d4bd cmake: fixed QCA_PLUGINS_INSTALL_DIR meaning
Plugins must be in crypto subdir. It is used internally in providers
finding algorythm. So now QCA_PLUGINS_INSTALL_DIR it is path to
crypto directory.
2014-09-24 16:00:39 +06:00
Sune Vuorela
93f60f1626 Initialize memory is a class.
REVIEW: 120101
2014-09-12 21:58:10 +02:00
Florian Fieber
2559f1779a Fix operating on keys with unrelated expired subkeys
Ignore KEYEXPIRED which will be thrown for any expired subkey regardless
of being related to the current operation. Instead, use EXPKEYSIG,
REVKEYSIG, EXPSIG and INV_RECP accordingly.

Add new errors QCA::SecureMessage::{ErrorSignerRevoked,
                                    ErrorSignatureExpired,
                                    ErrorEncryptRevoked}.

Due to GnuPG bug #1650 <https://bugs.g10code.com/gnupg/issue1650>
encrypting to an expired or revoked key will omit the reason for failing,
resulting in the error code QCA::SecureMessage::ErrorEncryptInvalid.

REVIEW: 118567
2014-09-08 18:14:40 +06:00
Ivan Romanov
c30f5d2455 cmake: fixed typo 2014-08-22 21:48:20 +06:00
Ivan Romanov
da1f8190ac cmake: use FindPkcConfig module instead of obsoletes PKGCONFIG 2014-08-21 03:10:34 +06:00
Ivan Romanov
fbdf57f843 cmake: install .PDB files
On Windows when compiling with Visual Studio will be produced special
.pdb files for debuggins purposes. It must be put next to target
runtime (.dll or .exe) file.
2014-02-03 02:05:54 +06:00
Ivan Romanov
2502aad59d cmake: after compiling put all static libs to lib directory 2014-02-01 03:33:29 +06:00
Ivan Romanov
b049c59588 qca-botan: fixed getting result size for ciphers
Do not try to guess the result size. It rely with particular
algo and some other factors and so can be any. Just use
Pipe::remaining() for this purpose.
2014-01-30 00:33:50 +06:00
Adnan RIHAN
71f932186b Fixed "unused variable" warning in qca-gcrypt plugin 2014-01-22 11:10:19 +01: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
80048dc7b9 qca-nss: fixed KeyLenght for Cipher
Before was KeyLength(0, 0, 0). Seems it is dummy.
2014-01-03 22:14:14 +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
5d06579605 Use internal cache vars to choose plugins for building
It allow to know will be particular plugin build or no
in any place of cmake rules.
2014-01-01 02:10:15 +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
Ivan Romanov
ea239aaf96 [ossl] fixed certs time zone 2013-12-09 03:32:59 +06:00
Ivan Romanov
60b96878d7 fixed tab 2013-11-21 11:34:50 +06:00
Ivan Romanov
4e535d25e5 Fixed IID for all plugins
In Qt5 plugin IID is the same as identifier from Q_DECLARE_INTERFACE
2013-11-21 11:31:13 +06:00
Ivan Romanov
2d1d815ab2 less warnings 2013-11-17 16:22:35 +06:00
Ivan Romanov
ab7ec14047 fixed rsa decription when no e or d
When private key has no Public Exponent (e) or Private Exponent (d)
need to disable blinding. Otherwise decryption will be broken.
http://www.mail-archive.com/openssl-users@openssl.org/msg63530.html
2013-11-17 16:09:14 +06:00
Ivan Romanov
e2ab61c10e Implement EME_PKCS1v15_SSL and EME_NO_PADDING in qca-ossl plugin 2013-11-17 02:33:26 +06:00
Ivan Romanov
094899a00c Optional plugins build
Now possible to build only required plugins and skip all others.
Also can get fail if required plugins can't be built.
By default will be build all possible plugins.

New cmake cache variables:

ENABLE_PLUGINS - list plugins to build (botan;ossl;gnupg for example).
                 Also possible values is none, auto or all
                 (by default: "auto")

WITH_${PLUGIN}_PLUGIN - to build particular plugin. Can be no, yes or
                        auto (WITH_ossl_PLUGIN=auto for example)
2013-11-11 21:08:56 +06:00
Ivan Romanov
1b3249c6e2 changed plugins directory in build tree 2013-10-02 23:21:43 +06:00
Ivan Romanov
49f312505c no digit postffix in qcatool2 name 2013-10-02 22:12:32 +06:00
Ivan Romanov
f55fab268d cmake: some optimization with binary tree
plugins now is in lib/plugins/crypto
qcatool now is in bin
2013-10-01 08:01:50 +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
0a8b9db661 [qca-ossl] compiling without AES CTR
Actual openssl versions might have no AES CTR.
In this case qca-ossl will be compiled without AES CTR.

Also dropped own obsoletes FindOpenSSL.cmake.
System version is better choice.
2013-08-25 14:47:36 +06:00
Ivan Romanov
4320c6532b [qca-ossl] added support for aes ctr 128, 192 and 256 2013-08-25 03:36:58 +06:00
Ivan Romanov
44c7fbb74f install qca to prefix or qt_prefix
Added option QCA_INSTALL_IN_QT_PREFIX to provide a way to choose
default prefix for installing qca. By default is ON.
Also added a cache vars.
  QCA_PREFIX_INSTALL_DIR
  QCA_PLUGINS_INSTALL_DIR
  QCA_BINARY_INSTALL_DIR
  QCA_LIBRARY_INSTALL_DIR
  QCA_FEATURE_INSTALL_DIR
  QCA_INCLUDE_INSTALL_DIR
  QCA_PRIVATE_INCLUDE_INSTALL_DIR
  QCA_DOC_INSTALL_DIR
  QCA_MAN_INSTALL_DIR
2013-08-24 21:26:40 +06:00
Ivan Romanov
e0cdd5db40 Revert "install qca to prefix or qt_prefix"
This reverts commit f5cb5b04dcb37ab4a62943c19646bcfa3d7d3b23.
2013-07-25 14:23:16 +06:00