-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[77] Improve test suite for RSAEncrypter/Decrypter #81
Merged
Merged
Changes from 18 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
bc7bbdf
[JOSE-80] Add shared user data introduced Xcode 9.3 to gitignore
mohemian-92817281 9c0c504
Merge branch 'master' into feature/JOSE-80-improve-tests
mohemian-92817281 7d00453
[JOSE-80] Add failure test case for decrypting empty data
mohemian-92817281 9567ae8
[JOSE-80] Better assertions for failure case
mohemian-92817281 2265f17
[JOSE-80] privateKey2048 -> privateKeyAlice2048
mohemian-92817281 a87570c
[JOSE-80] publicKey2048 -> publicKeyAlice2048
mohemian-92817281 bcec1c5
[JOSE-80] Add Bob’s 2048 bit private key
mohemian-92817281 17ffa68
[JOSE-80] Add encryption test for Bob’s key
mohemian-92817281 f7350e5
[JOSE-80] keyPair2048 -> keyPairAlice2048
mohemian-92817281 9650165
[JOSE-80] Read Bob’s keypair from plist file
mohemian-92817281 79582f8
[JOSE-80] cipherTextBase64URL -> cipherTextWithAliceKeyBase64URL
mohemian-92817281 c660a0c
[JOSE-80] Load Bob’s key data; update cipher texts; add Bob decryptio…
mohemian-92817281 62f222d
[JOSE-80] Add test for encrypting the same data twice
mohemian-92817281 40ce19b
[JOSE-80] Add test to check if Alice’s and Bob’s cipher texts differ
mohemian-92817281 a7292e5
[JOSE-80] Add equality for decryption error
mohemian-92817281 ee5323a
[JOSE-80] Add default decryption error
mohemian-92817281 2d4f09f
[JOSE-80] Decrypting with the wrong key should throw an error
mohemian-92817281 8c58365
[JOSE-80] Update Bob’s cipher text
mohemian-92817281 f36fdb2
[JOSE-80] Fix Base64 variable names
mohemian-92817281 eeecbde
[JOSE-80] Use multiline literals for cipher texts
mohemian-92817281 9d675a3
Merge branch 'master' into feature/JOSE-80-improve-tests
mohemian-92817281 03adc40
[JOSE-80] Re-generate Alice’s cypher text with openssl; adjust test
mohemian-92817281 25fe769
[JOSE-80] Re-generate Bob’s cypher text with openssl; adjust test
mohemian-92817281 ba2dac1
[JOSE-80] Better comments
mohemian-92817281 3d374e6
[JOSE-80] Remove nonsensical empty string test
mohemian-92817281 6a8a3c8
[JOSE-80] Rename TestKey.plist -> TestKeys.plist
mohemian-92817281 09b1963
[JOSE-80] Add decrypter test for zero-length data
mohemian-92817281 5a75cf4
[JOSE-80] Add tests for encrypting message of length `mLen` and `mLen…
mohemian-92817281 b221486
[JOSE-80] Better naming for zero length decryption test
mohemian-92817281 130d902
[JOSE-80] Add decryption tests for `len=k`, `len=k-1`, `len=k+1`
mohemian-92817281 f307b16
Merge branch 'master' into feature/JOSE-80-improve-tests
mohemian-92817281 fdbfc93
[JOSE-80] Use Alice’s key for new tests
mohemian-92817281 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,3 +101,4 @@ fastlane/test_output | |
|
||
.idea/ | ||
sonar-reports/ | ||
/JOSESwift.xcworkspace/xcshareddata | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏