(backend)
| 364 | |
| 365 | |
| 366 | def test_reset_nonce_invalid_mode(backend): |
| 367 | iv = b"\x00" * 16 |
| 368 | c = base.Cipher( |
| 369 | algorithms.AES(b"\x00" * 16), |
| 370 | modes.CBC(iv), |
| 371 | ) |
| 372 | enc = c.encryptor() |
| 373 | with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_CIPHER): |
| 374 | enc.reset_nonce(iv) |
| 375 | dec = c.decryptor() |
| 376 | with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_CIPHER): |
| 377 | dec.reset_nonce(iv) |
nothing calls this directly
no test coverage detected