mirror of
https://github.com/QuasarApp/Qt-AES.git
synced 2025-05-19 00:09:34 +00:00
fixed size for blocklen
This commit is contained in:
parent
4a06e8728a
commit
9537c6e5ad
@ -221,7 +221,7 @@ void AesTest::CBC256StringEvenPKCS7()
|
|||||||
|
|
||||||
//16 byte string
|
//16 byte string
|
||||||
QString inputStr("1234567890123456");
|
QString inputStr("1234567890123456");
|
||||||
int blockLen = inputStr.length();
|
int blockLen = 16;
|
||||||
QString key("123456789123");
|
QString key("123456789123");
|
||||||
|
|
||||||
QByteArray hashKey = QCryptographicHash::hash(key.toLocal8Bit(), QCryptographicHash::Sha256);
|
QByteArray hashKey = QCryptographicHash::hash(key.toLocal8Bit(), QCryptographicHash::Sha256);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user