Windows msys build
This commit is contained in:
2 files changed
+4
-2
No files matched your search
+2
-2
@@ -81,8 +81,8 @@ buildWindows:
|
|||||||
windowsPublishToSnapshot:
|
windowsPublishToSnapshot:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- ./windowsBuildAndPublish-delegated.sh
|
- C:\msys64\msys2_shell.cmd -msys -here windowsBuildAndPublish-delegated.sh
|
||||||
- ./windowsBuildAndPublish-pure.sh
|
- C:\msys64\msys2_shell.cmd -msys -here windowsBuildAndPublish-pure.sh
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "master"'
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
||||||
- allow_failure: false
|
- allow_failure: false
|
||||||
|
|||||||
+2
@@ -226,7 +226,9 @@ class XChaCha20Poly1305Test {
|
|||||||
expected.contentEquals(result) && decrypted.contentEquals(data)
|
expected.contentEquals(result) && decrypted.contentEquals(data)
|
||||||
}
|
}
|
||||||
val messedUpTag = result.copyOf()
|
val messedUpTag = result.copyOf()
|
||||||
|
messedUpTag[messedUpTag.size - 3] = 0U
|
||||||
messedUpTag[messedUpTag.size - 2] = 0U
|
messedUpTag[messedUpTag.size - 2] = 0U
|
||||||
|
messedUpTag[messedUpTag.size - 1] = 0U
|
||||||
assertFails {
|
assertFails {
|
||||||
val decryptorForWrongTag = XChaCha20Poly1305Delegated(key, state, header, true)
|
val decryptorForWrongTag = XChaCha20Poly1305Delegated(key, state, header, true)
|
||||||
val plaintext = decryptorForWrongTag.decrypt(messedUpTag)
|
val plaintext = decryptorForWrongTag.decrypt(messedUpTag)
|
||||||
|
|||||||
Reference in new issue
Block a user