Add tests

This commit is contained in:
Joe Farebrother
2022-08-05 17:18:43 +01:00
parent 41bdd6d4cc
commit 9ae652dd6a
4 changed files with 30 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
// BAD: No padding scheme is used
Cipher rsa = Cipher.getInstance("RSA/ECB/NoPadding")
Cipher rsa = Cipher.getInstance("RSA/ECB/NoPadding");
...
//GOOD: OAEP padding is used
Cipher rsa = Cipher.getInstance("RSA/ECB/OAEPWithSHA-1AndMGF1Padding")
Cipher rsa = Cipher.getInstance("RSA/ECB/OAEPWithSHA-1AndMGF1Padding");
...