deno
c023a4f1 - fix: CipherError code property, CCM validation, and test filter check

Commit
206 days ago
fix: CipherError code property, CCM validation, and test filter check - Add #[property("code")] to CipherError enum so errors like InvalidAuthTag include ERR_CRYPTO_INVALID_AUTH_TAG code property - Fix CCM setAAD plaintextLength validation: missing -> TypeError with 'options.plaintextLength required for CCM mode with AAD', invalid type/value -> ERR_INVALID_ARG_VALUE, too large -> 'Invalid message length' - Fix CCM update() message too long -> 'Invalid message length' - Fix CCM decrypt.final() without setAuthTag -> 'Unsupported state or unable to authenticate data' - Panic when test-compat filter matches no tests instead of silently passing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Parents
Loading