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:
parent
7bee81cf0d
commit
affef9fc80
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user