Fixed test
This commit is contained in:
parent
f21746cfae
commit
02e9e4d974
1 changed files with 1 additions and 2 deletions
|
@ -125,10 +125,9 @@ void NetworkPackageTests::networkPackageEncryptionTest()
|
|||
QCOMPARE( decrypted.body(), copy.body() );
|
||||
|
||||
|
||||
|
||||
//Test for long package encryption that need multi-chunk encryption
|
||||
|
||||
QByteArray json = "{\"body\":{\"nowPlaying\":\"A really long song name - A really long artist name\",\"player\":\"A really long player name\",\"the_meaning_of_life_the_universe_and_everything\":\"42\"},\"id\":\"A really long package id\",\"type\":\"kdeconnect.a_really_really_long_package_type\"}\n";
|
||||
QByteArray json = "{\"body\":{\"nowPlaying\":\"A really long song name - A really long artist name\",\"player\":\"A really long player name\",\"the_meaning_of_life_the_universe_and_everything\":\"42\"},\"id\":\"A really long package id\",\"payloadSize\":0,\"payloadTransferInfo\":{},\"type\":\"kdeconnect.a_really_really_long_package_type\"}\n";
|
||||
qDebug() << "EME_PKCS1_OAEP maximumEncryptSize" << publicKey.maximumEncryptSize(QCA::EME_PKCS1_OAEP);
|
||||
qDebug() << "EME_PKCS1v15 maximumEncryptSize" << publicKey.maximumEncryptSize(QCA::EME_PKCS1v15);
|
||||
QCOMPARE( json.size() > publicKey.maximumEncryptSize(NetworkPackage::EncryptionAlgorithm), true );
|
||||
|
|
Loading…
Reference in a new issue