Windows msys build

This commit is contained in:
Ugljesa Jovanovic 2020-10-20 20:18:52 +02:00
parent eee83ca839
commit 314765eee1
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)