175 Commits

Author SHA1 Message Date
Brad Hards
5d0cb8476f Add in HMAC support, and turn on the new secure memory
code. HMAC appears to be fine, but the memory allocation
code is showing a few problems (probably in qca proper,
but I need to track it down).

svn path=/trunk/kdesupport/qca/; revision=405045
2005-04-12 11:52:03 +00:00
Justin Karneges
9ed313b545 default handled in qca lib, not here
svn path=/trunk/kdesupport/qca/; revision=405024
2005-04-12 10:27:12 +00:00
Justin Karneges
beb5736f05 smart provider handling for pkey
svn path=/trunk/kdesupport/qca/; revision=405023
2005-04-12 10:25:35 +00:00
Brad Hards
f6e45f2b84 Add a local TODO
svn path=/trunk/kdesupport/qca/; revision=404491
2005-04-10 01:46:01 +00:00
Justin Karneges
80ac2306df handle input of both encrypted and non-encrypted DER private keys
svn path=/trunk/kdesupport/qca/; revision=404478
2005-04-09 22:46:24 +00:00
Justin Karneges
e5af5435ec turn cert info into a multimap
svn path=/trunk/kdesupport/qca/; revision=403256
2005-04-05 08:50:28 +00:00
Justin Karneges
1d64b89332 cert key ids
svn path=/trunk/kdesupport/qca/; revision=403249
2005-04-05 07:57:40 +00:00
Justin Karneges
704de04a07 key bitsize
svn path=/trunk/kdesupport/qca/; revision=402997
2005-04-04 00:34:13 +00:00
Brad Hards
1de05d8ff7 Add in support for PBKDF1 with SHA-1 and MD2.
Also a minor indenting fix.

svn path=/trunk/kdesupport/qca/; revision=402813
2005-04-03 09:31:00 +00:00
Brad Hards
d05d0dc11c Implement PBKDF1 with SHA1. Passes unit tests.
svn path=/trunk/kdesupport/qca/; revision=402796
2005-04-03 07:04:34 +00:00
Brad Hards
8899426efc Avoid repetive initialisation of the secure memory.
svn path=/trunk/kdesupport/qca/; revision=402794
2005-04-03 06:18:09 +00:00
Brad Hards
8dcb0db99e Add in CFB, CBC, CBC-PKCS7 and OFB modes for Blowfish.
svn path=/trunk/kdesupport/qca/; revision=402619
2005-04-02 11:50:55 +00:00
Brad Hards
bbb76611eb Add CBC and CFB modes for blowfish.
svn path=/trunk/kdesupport/qca/; revision=402617
2005-04-02 11:42:55 +00:00
Brad Hards
ea902c60dd libgcrypt can't do OFB, so not much point in trying.
svn path=/trunk/kdesupport/qca/; revision=401573
2005-03-29 11:34:34 +00:00
Brad Hards
b468afe516 Add in AES OFB modes support (128, 192 and 256 bits)
svn path=/trunk/kdesupport/qca/; revision=401196
2005-03-28 07:58:43 +00:00
Brad Hards
c0d8aff18a Add in some more ciphers (disable OFB for now, doesn't appear to be
supported). Also rework the error display code, to make it easier
to figure out where it is breaking.

Refactor hashes, reducing code a bit and making it much easier to
add in more hash algorithms.

svn path=/trunk/kdesupport/qca/; revision=401195
2005-03-28 07:57:29 +00:00
Justin Karneges
ab508f9893 keystore API for accessing system stores, smart cards, and pgp
svn path=/trunk/kdesupport/qca/; revision=401186
2005-03-28 07:11:58 +00:00
Brad Hards
185dc77ee5 Split init order, to support variable length keys.
Secure Programming Cookbook recipe 5.18.

svn path=/trunk/kdesupport/qca/; revision=400945
2005-03-27 10:39:40 +00:00
Justin Karneges
8bd7a0e5a9 fix some things
svn path=/trunk/kdesupport/qca/; revision=400938
2005-03-27 10:18:03 +00:00
Brad Hards
42051b887f Add new Cipher mode / padding combinations:
DES / ECB / PKCS7 padding
DES / CBC / No padding
DES / CBC / PKCS7 padding
DES / OFB / No padding
DES / CFB / No padding

The DES / OFB combination is failing unit test, but I don't know why.

svn path=/trunk/kdesupport/qca/; revision=400923
2005-03-27 09:37:41 +00:00
Brad Hards
ad05026577 Add in pkcs5.c code, originally posted to gcrypt-devel mailing list.
I just converted it to current API.

svn path=/trunk/kdesupport/qca/; revision=400726
2005-03-26 11:30:47 +00:00
Brad Hards
60a6a8cff3 General upgrade to the libgcrypt provider:
* Complete PBKDF2 support (now working)
* Factor out a common versioning check
* Initial support for memory plugin, broken for reasons I don't understand

svn path=/trunk/kdesupport/qca/; revision=400723
2005-03-26 11:26:56 +00:00
Brad Hards
b653e4c8be Change the way namespacing is used.
Add in implementation for PBKDF2.

svn path=/trunk/kdesupport/qca/; revision=400462
2005-03-25 11:07:16 +00:00
Brad Hards
090ae6e407 Enclose libgcrypt plugin in a namespace, for safety.
svn path=/trunk/kdesupport/qca/; revision=399408
2005-03-21 07:21:44 +00:00
Brad Hards
7908cc28e5 Add cipher support for OpenSSL plugin. There is no unit test coverage
for the PKCS7 padding versions, and the Blowfish ECB code is failing
unit tests for reasons I don't understand.

svn path=/trunk/kdesupport/qca/; revision=399407
2005-03-21 07:19:14 +00:00
Brad Hards
77a3a44cb1 Refactor OpenSSL plugin hashing code, just pass in the digest object
as a parameter instead of a separate class for each Hash.

svn path=/trunk/kdesupport/qca/; revision=398907
2005-03-19 09:09:44 +00:00
Brad Hards
854a8d4c65 Refactor the HMAC code, passing in the hash as an argument.
svn path=/trunk/kdesupport/qca/; revision=398903
2005-03-19 07:51:28 +00:00
Brad Hards
ccbe232ccb Update libgcrypt provider to support the symmetric ciphers that I have test
cases for.  The code to handle padding is untested and almost certainly
broken / incomplete. I'm still figuring out the libgcrypt side of that.

svn path=/trunk/kdesupport/qca/; revision=398900
2005-03-19 06:58:53 +00:00
Brad Hards
1f4635e38b Initial changes to support new Cipher API. This segfaults if you use
the ciphertest example, or the unit tests.

CCMAIL: justin-psi@affinix.com

svn path=/trunk/kdesupport/qca/; revision=398879
2005-03-19 01:05:32 +00:00
Justin Karneges
a78d3f2d54 add publickey and cert functionality
svn path=/trunk/kdesupport/qca/; revision=397510
2005-03-14 11:38:23 +00:00
Brad Hards
1bb8a9b13c Update to new plugin approach.
svn path=/trunk/kdesupport/qca/; revision=393981
2005-03-01 02:59:18 +00:00
Brad Hards
84964053c9 Update to work with new (Qt4) plugin architecture.
svn path=/trunk/kdesupport/qca/; revision=393975
2005-03-01 02:43:16 +00:00
Justin Karneges
4bc8bbe725 new plugin style
svn path=/trunk/kdesupport/qca/; revision=393758
2005-02-28 09:56:07 +00:00
Brad Hards
320a135a69 Update to new Qt4 approach.
svn path=/trunk/kdesupport/qca/; revision=393740
2005-02-28 08:20:09 +00:00
Brad Hards
cf8ff67e8a Update provider to handle new include style.
svn path=/trunk/kdesupport/qca/; revision=383578
2005-01-29 07:55:29 +00:00
Brad Hards
23c6ebaabb Update provider to handle new include approach
svn path=/trunk/kdesupport/qca/; revision=383575
2005-01-29 07:42:34 +00:00
Brad Hards
533c9c9c59 Update provider to reflect new include style.
svn path=/trunk/kdesupport/qca/; revision=383573
2005-01-29 07:16:35 +00:00
Brad Hards
b9c40d98fc Make it consistent.
svn path=/trunk/kdesupport/qca/; revision=381430
2005-01-23 07:10:41 +00:00
Brad Hards
cce3f0dd74 Add hashing algos.
svn path=/trunk/kdesupport/qca/; revision=374188
2004-12-30 09:45:07 +00:00
Brad Hards
6b13577210 Add MD4, MD5 and RIPEMD160 hashes. Also add suppression of warnings
about weak keys.

svn path=/trunk/kdesupport/qca/; revision=374166
2004-12-30 08:22:28 +00:00
Brad Hards
17ec148d16 Refactoring of the QCA OpenSSL plugin to use the EVP interface.
Also some gratuitous wipespace changes.

svn path=/trunk/kdesupport/qca/; revision=374165
2004-12-30 08:20:54 +00:00
Brad Hards
84a734a1c6 qconf enable qca-botan
svn path=/trunk/kdesupport/qca/; revision=371799
2004-12-19 01:16:02 +00:00
Brad Hards
c8689200cf Add qconf support.
svn path=/trunk/kdesupport/qca/; revision=371796
2004-12-19 01:01:03 +00:00
Brad Hards
89510efec0 This built, but segfaulted. It'd be nice if we could avoid it
building at all, but not seeing any way to do that yet.

svn path=/trunk/kdesupport/qca/; revision=371576
2004-12-18 07:06:56 +00:00
Brad Hards
ddbfb53e95 DES provider
svn path=/trunk/kdesupport/qca/; revision=366842
2004-11-28 11:15:52 +00:00
Brad Hards
15b15a266e Initial cut-over to the new padding approach. We still don't actually
support PKCS7, but I'll try to finish that off today.

This also brings in some API docs changes that I had lying around, they
aren't related, but I was too lazy to split it out.

svn path=/trunk/kdesupport/qca/; revision=366744
2004-11-27 21:14:42 +00:00
Brad Hards
a544a15e4b An interim step to getting the new crypto approach implemented.
I had the concept wrong for how update() and final() should work,
this corrects that.

svn path=/trunk/kdesupport/qca/; revision=366590
2004-11-27 10:31:22 +00:00
Brad Hards
9707759819 Initial import of a Botan provider. Not installable yet.
svn path=/trunk/kdesupport/qca/; revision=365741
2004-11-24 07:36:45 +00:00
Brad Hards
f5f984383b Big refactoring, so I have less places to make misteakes.
Also add in AES192, AES256, Blowfish and triple DES. Do we want anything
else? DES maybe?

svn path=/trunk/kdesupport/qca/; revision=365384
2004-11-23 08:51:35 +00:00
Brad Hards
1a1aef19ed Add the second v2 plugin. This one is based on libgcrypt, and the
current version provides SHA1, SHA256, SHA384 and SHA512, as well as some
early work on AES128.

Justin - can you take a look at the qconf stuff, or point me to an
example of one that uses the -config script approach? Basically we
just need to plug in libgcrypt-config --cflags and
libgcrypt-config --libs (and maybe make sure --version is at least
1.2.0).

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

svn path=/trunk/kdesupport/qca/; revision=364428
2004-11-20 06:07:03 +00:00