mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-27 20:14:32 +00:00
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:
parent
26fe828340
commit
2255042598
8
plugins/qca-gcrypt/TODO
Normal file
8
plugins/qca-gcrypt/TODO
Normal 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.
|
||||||
|
|
@ -420,13 +420,17 @@ public:
|
|||||||
list += "md4";
|
list += "md4";
|
||||||
list += "md5";
|
list += "md5";
|
||||||
list += "ripemd160";
|
list += "ripemd160";
|
||||||
|
#if HAVE_SHA224
|
||||||
list += "sha224";
|
list += "sha224";
|
||||||
|
#endif
|
||||||
list += "sha256";
|
list += "sha256";
|
||||||
list += "sha384";
|
list += "sha384";
|
||||||
list += "sha512";
|
list += "sha512";
|
||||||
list += "hmac(md5)";
|
list += "hmac(md5)";
|
||||||
list += "hmac(sha1)";
|
list += "hmac(sha1)";
|
||||||
|
#if HAVE_SHA224
|
||||||
list += "hmac(sha224)";
|
list += "hmac(sha224)";
|
||||||
|
#endif
|
||||||
list += "hmac(sha256)";
|
list += "hmac(sha256)";
|
||||||
list += "hmac(sha384)";
|
list += "hmac(sha384)";
|
||||||
list += "hmac(sha512)";
|
list += "hmac(sha512)";
|
||||||
@ -463,8 +467,10 @@ public:
|
|||||||
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_MD5, this, type );
|
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_MD5, this, type );
|
||||||
else if ( type == "ripemd160" )
|
else if ( type == "ripemd160" )
|
||||||
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_RMD160, this, type );
|
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_RMD160, this, type );
|
||||||
|
#if HAVE_SHA224
|
||||||
else if ( type == "sha224" )
|
else if ( type == "sha224" )
|
||||||
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_SHA224, this, type );
|
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_SHA224, this, type );
|
||||||
|
#endif
|
||||||
else if ( type == "sha256" )
|
else if ( type == "sha256" )
|
||||||
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_SHA256, this, type );
|
return new gcryptQCAPlugin::gcryHashContext( GCRY_MD_SHA256, this, type );
|
||||||
else if ( type == "sha384" )
|
else if ( type == "sha384" )
|
||||||
@ -475,8 +481,10 @@ public:
|
|||||||
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_MD5, this, type );
|
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_MD5, this, type );
|
||||||
else if ( type == "hmac(sha1)" )
|
else if ( type == "hmac(sha1)" )
|
||||||
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_SHA1, this, type );
|
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_SHA1, this, type );
|
||||||
|
#if HAVE_SHA224
|
||||||
else if ( type == "hmac(sha224)" )
|
else if ( type == "hmac(sha224)" )
|
||||||
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_SHA224, this, type );
|
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_SHA224, this, type );
|
||||||
|
#endif
|
||||||
else if ( type == "hmac(sha256)" )
|
else if ( type == "hmac(sha256)" )
|
||||||
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_SHA256, this, type );
|
return new gcryptQCAPlugin::gcryHMACContext( GCRY_MD_SHA256, this, type );
|
||||||
else if ( type == "hmac(sha384)" )
|
else if ( type == "hmac(sha384)" )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user