Skip to content

v7.11.0

Choose a tag to compare

@dmitrizagidulin dmitrizagidulin released this 12 Oct 21:55
· 2 commits to main since this release

Added

  • IntegrityError, thrown when a JWE's content fails its AEAD check after the
    content key was unwrapped. The cipher backend's error is the cause. Before,
    the backend's raw error propagated as is, and the browser XC20P cipher
    resolved null.

Changed

  • decrypt and decryptObject now throw KeyMissError when the key matches a
    recipient but does not unwrap its content key, the same error a recipient
    mismatch raises. Before, they resolved null.
  • A decrypt stream whose chunk's content key does not unwrap now errors with
    KeyMissError. Before, it was a plain Error named DataError.