mozilla-services / go-cose

go library for CBOR Object Signing and Encryption (COSE)
Mozilla Public License 2.0
40 stars 18 forks source link

tests that modify a single byte of signature or payload can fail intermittently #68

Closed fxamacker closed 4 years ago

fxamacker commented 4 years ago

These two tests use an XOR that causes them to fail intermittently.

https://github.com/mozilla-services/go-cose/blob/1ecf8f01ead363c662f6dae2683254df184a78e2/sign_verify_cose_rust_cli_test.go#L58-L65

This can be fixed by making the target byte XOR with 1, instead of itself.