jcryptool / crypto

JCrypTool Crypto Plug-ins
https://www.cryptool.org
Eclipse Public License 1.0
68 stars 39 forks source link

Test algorithm perspective functionality #296

Closed simlei closed 3 years ago

simlei commented 4 years ago

Test Algorithm-Perspective

TODO: while testing the first ones, develop a scheme for evaluation like in #287. Try to find a good trade-off to the effect of maximum efficiency (we only want to see if there are any systemic problems).

These UI paths were deemed representative and should be tested. Post results as comments in this issue for now to be sorted out later. Getestet Status Verfahren Kommentar
@grthor 🏁 Asymmetric Block Ciphers \ ElGamal
@CharlotteMagister / @grthor 🏁 Asymmetric Block Ciphers \ RSA
@grthor 🏁 Block Ciphers \ Twofish Help icon with no function. Dropdown for keylength selection availabel but at no time changeable
@grthor ❌ Hybrid Ciphers \ McEliecePointchevalCipher Trying to encrypt the default text with a default McElieceCCA2 freezes JCT. No exception thrown.
@grthor 🏁 Message Authentication Codes \ CMac \ CmacDESede
@grthor 🏁 Message Authentication Codes \ HMac \ HmacRIPEMD320 Outputs something, but may not be correct
@Eduard951 :checkered_flag: Message Authentication Codes \ CBCMac \ CBCmacSerpent When the user wants to specify a parameter and just adds " " (Spacebar) the field "finish" is green and the user can finish the configuration. The field expects a hexadecimal input, but when the user types for example the letter "G" two times in a row the Finish-Button can be clicked.
@grthor 🏁 Message Authentication Codes \ TwoTrackMac \ TwoTrackMac160 Outputs something, but may not be correct
@Eduard951 🏁 Message Digests \ SHA384
@Eduard951 ❌ Password-Based Ciphers \ PbeWithSHAAnd3_KeyTripleDES_CBC Nothing happens when you try to click run button. log
@Eduard951 🏁 Pseudo Random Number Generators \ SHA1PRNG
@Eduard951 ❌ Signatures \ MeRSA You cant decrypt message, the key dissapears. log
@Eduard951 🏁 Signatures \ RSASignaturePKCS1v15 \ RIPEMD160/RSA
@Eduard951 🏁 Signatures \ IQGQSignature \ IQGQ
@Eduard951 🏁 Signatures \ DSASignature \ RAW/DSA
@CharlotteMagister 🏁 Signatures \ CMSSSignature \ CMSSwithSHA512andWinternitzOTS_1
@CharlotteMagister ❌ Signatures \ IQRDSASignature \ IQRDSA Mac Problem: German and English version do not output that signature verified
@CharlotteMagister ❌ Signatures \ GMSSSignature \ GMSSwithSHA512 Mac Problem: German version does not output that signature verified
@CharlotteMagister ❌ Signatures \ SSL_MD5andSHA1withRSA Exception initialising signature error
@CharlotteMagister ❌ Signatures \ MerkleOTSSignature \ MerkleOTSwithSHA512 Mac Problem: German version does not output that signature verified
simlei commented 4 years ago

An idea of how a test check list could look like can be seen in https://github.com/jcryptool/crypto/issues/287

CharlotteMagister commented 4 years ago

Will start testing the first three items, after a plan for testing is established.

grthor commented 4 years ago

@CharlotteMagister and I have just developed a checklist according to which the algorithm plug-ins are tested.

The checklist contains the following 4 points:

Due to the small size of the algorithm GUIs (maximum one dialog box with 2 pages) the checklist is much smaller than for the normal plugins (https://github.com/jcryptool/crypto/issues/287).

We decided against testing the validity of the results of the algorithms, because the algorithms are provided by the crypto-provider Bouncycastle and we trust that they are correct.

grthor commented 4 years ago

Some Algorithms do not open at all:

List to be continued

CharlotteMagister commented 4 years ago

I tested Asymmetric Block Ciphers \ RSA. I did not find any issues with it, but when clicking between the Asymmetric Block Ciphers and the Operations View the change in the text displayed in the Help box appears inconsistent. Sometimes the text vanishes and sometimes it appears again.

Eduard951 commented 4 years ago

I tested Message Authentication Codes \ HMac \ CBCmacSerpent. I did find some issues. When the user wants to specify a parameter and just adds " " (Spacebar) the field "finish" is green and the user can finish the configuration. The field expects a hexadecimal input, but when the user types for example the letter "G" two times in a row the Finish-Button can be clicked. I dontΒ΄t think this works as intended.

Eduard951 commented 4 years ago

I tested:

Pseudo Random Number Generators \ SHA1PRNG Message Digests \ SHA384

Both working as intended.

Eduard951 commented 4 years ago

Tested Password-Based Ciphers \ PbeWithSHAAnd3_KeyTripleDES_CBC:

Nothing happens when you try to click run button. log(TripleKey_error_20_10_2020).txt

Also tested Signatures \ MeRSA:

You cant decrypt message, the key dissapears. log(Mersa_20_10_2020).txt

Eduard951 commented 4 years ago

Working: Signatures \ IQGQSignature \ IQGQ Signatures \ DSASignature \ RAW/DSA Signatures \ RSASignaturePKCS1v15 \ RIPEMD160/RSA

simlei commented 3 years ago

Closed with the release of v1.0.0