Open Bug 1903388 Opened 4 months ago Updated 4 months ago

Write additional tests for the encryption and decryption mechanism

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

People

(Reporter: mconley, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-device-migration])

From djackson:

Suggestions for additional tests:

  1. Detecting truncation attacks. Generate an archive and remove the last block. Check that the Decryptor correctly rejects it.
  2. Swap the last block and the second to last block. Check that decryption fails.
  3. Start at the second block and check that decryption fails.
  4. Authenticity Checks - Generate an archive and mutate the various parameters in the archive (e.g. the metadata, the wrapped key, etc). Verify that Decryption fails in each case.
  5. Check that an empty archive fails to decrypt.
  6. Check that an unexpected version is gracefully handled
Blocks: 1892744
No longer blocks: 1890322
You need to log in before you can comment on or make changes to this bug.