4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-12 02:39:34 +00:00

added CTR symetric cipher support to qca core

This commit is contained in:
Ivan Romanov 2013-08-25 00:23:19 +06:00
parent 7bee81cf0d
commit affef9fc80
2 changed files with 5 additions and 1 deletions
include/QtCrypto
src

@ -587,7 +587,8 @@ public:
CBC, ///< operate in %Cipher Block Chaining mode
CFB, ///< operate in %Cipher FeedBack mode
ECB, ///< operate in Electronic Code Book mode
OFB ///< operate in Output FeedBack Mode
OFB, ///< operate in Output FeedBack Mode
CTR, ///< operate in CounTer Mode
};
/**

@ -393,6 +393,9 @@ QString Cipher::withAlgorithms(const QString &cipherType, Mode modeType, Padding
case ECB:
mode = "ecb";
break;
case CTR:
mode = "ctr";
break;
default:
Q_ASSERT(0);
}