Make sure that we can compile with a released libgrypt.

Also add in a couple of TODO items I thought of along the way.

svn path=/trunk/kdesupport/qca/; revision=408964
This commit is contained in:
Brad Hards 2005-05-01 08:03:55 +00:00
parent 26fe828340
commit 2255042598
2 changed files with 16 additions and 0 deletions

8
plugins/qca-gcrypt/TODO Normal file
View File

@ -0,0 +1,8 @@
Configuration:
* Add check for libgcrypt support for SHA224
Implementation:
* Cipher is incomplete - it can't handle cases where
data is not provided in blocksize chunks. Needs buffering
and padding to be added.

View File

@ -420,13 +420,17 @@ public:
list += "md4";
list += "md5";
list += "ripemd160";
#if HAVE_SHA224
list += "sha224";
#endif
list += "sha256";
list += "sha384";
list += "sha512";
list += "hmac(md5)";
list += "hmac(sha1)";
#if HAVE_SHA224
list += "hmac(sha224)";
#endif
list += "hmac(sha256)";
list += "hmac(sha384)";
list += "hmac(sha512)";
@ -463,8 +467,10 @@ public:
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_MD5, this, type );
else if ( type == "ripemd160" )
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_RMD160, this, type );
#if HAVE_SHA224
else if ( type == "sha224" )
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_SHA224, this, type );
#endif
else if ( type == "sha256" )
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_SHA256, this, type );
else if ( type == "sha384" )
@ -475,8 +481,10 @@ public:
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_MD5, this, type );
else if ( type == "hmac(sha1)" )
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_SHA1, this, type );
#if HAVE_SHA224
else if ( type == "hmac(sha224)" )
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_SHA224, this, type );
#endif
else if ( type == "hmac(sha256)" )
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_SHA256, this, type );
else if ( type == "hmac(sha384)" )