(t *testing.T, err error)
| 63 | } |
| 64 | |
| 65 | func assertCBCRefused(t *testing.T, err error) { |
| 66 | t.Helper() |
| 67 | privateErr := spcovPrivateErr(t, err) |
| 68 | assert.Check(t, errors.Is(privateErr, ErrInvalidSignature), "%v", privateErr) |
| 69 | assert.Check(t, !errors.Is(privateErr, ErrDecryptionFailed), "%v", privateErr) |
| 70 | assert.Check(t, is.ErrorContains(privateErr, "RequireSignedResponseForCBC")) |
| 71 | } |
| 72 | |
| 73 | // By default, an unsigned Response carrying a CBC EncryptedAssertion whose |
| 74 | // assertion is signed inside the encryption is still accepted. |
no test coverage detected