[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/qca/plugins/qca-gcrypt
From:       Brad Hards <bradh () frogmouth ! net>
Date:       2005-03-29 11:34:34
Message-ID: 20050329113434.A4A6C3CF () office ! kde ! org
[Download RAW message or body]

CVS commit by bhards: 

libgcrypt can't do OFB, so not much point in trying.


  M +0 -9      qca-gcrypt.cpp   1.15


--- kdesupport/qca/plugins/qca-gcrypt/qca-gcrypt.cpp  #1.14:1.15
@@ -310,8 +310,6 @@ public:
         list += "aes128-cfb";
         list += "aes128-cbc";
-        //list += "aes128-ofb";
         list += "aes192-ecb";
         list += "aes192-cfb";
-        //list += "aes192-ofb";
         list += "aes192-cbc";
         list += "aes256-ecb";
@@ -323,5 +321,4 @@ public:
         list += "des-cbc";
         list += "des-cfb";
-        //list += "des-ofb";
         list += "pbkdf2(sha1)";
         return list;
@@ -351,12 +348,8 @@ public:
         else if ( type == "aes128-cbc" )
             return new gcryptQCAPlugin::gcryCipherContext( GCRY_CIPHER_AES128, \
                GCRY_CIPHER_MODE_CBC, false, this, type );
-        else if ( type == "aes128-ofb" )
-            return new gcryptQCAPlugin::gcryCipherContext( GCRY_CIPHER_AES128, \
GCRY_CIPHER_MODE_OFB, false, this, type );  else if ( type == "aes192-ecb" )
             return new gcryptQCAPlugin::gcryCipherContext( GCRY_CIPHER_AES192, \
GCRY_CIPHER_MODE_ECB, false, this, type );  else if ( type == "aes192-cfb" )
             return new gcryptQCAPlugin::gcryCipherContext( GCRY_CIPHER_AES192, \
                GCRY_CIPHER_MODE_CFB, false, this, type );
-        else if ( type == "aes192-ofb" )
-            return new gcryptQCAPlugin::gcryCipherContext( GCRY_CIPHER_AES192, \
GCRY_CIPHER_MODE_OFB, false, this, type );  else if ( type == "aes192-cbc" )
             return new gcryptQCAPlugin::gcryCipherContext( GCRY_CIPHER_AES192, \
GCRY_CIPHER_MODE_CBC, false, this, type ); @@ -377,6 +370,4 @@ public:
         else if ( type == "des-cfb" )
             return new gcryptQCAPlugin::gcryCipherContext( GCRY_CIPHER_DES, \
                GCRY_CIPHER_MODE_CFB, false, this, type );
-        else if ( type == "des-ofb" )
-            return new gcryptQCAPlugin::gcryCipherContext( GCRY_CIPHER_DES, \
GCRY_CIPHER_MODE_OFB, false, this, type );  else if ( type == "pbkdf2(sha1)" )
             return new gcryptQCAPlugin::pbkdf2Context( GCRY_MD_SHA1, this, type );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic