Readonlycode: "InvalidSize"A key, nonce, signature, tag or sealed buffer had the wrong length.
Readonlywhat: stringThe argument, e.g. "ECDSA private key".
Readonlyexpected: numberThe required length in bytes.
Readonlyactual: numberThe length received.
Readonlycode: "InvalidData"A key, point or signature of the right length that is not valid.
Readonlywhat: stringThe argument, e.g. "ECDSA compressed public key".
Readonlycode: "InvalidParameter"An argument outside its domain: a number that is not an integer of
the Rust width, an options object that is not an object, a boolean
option that is not a boolean, or a byte argument that is not a
Uint8Array. Also a KDF parameter set the backend rejects.
Readonlywhat: stringThe argument, e.g. "scrypt logN" or "ECDSA message".
Readonlycode: "AuthenticationFailed"AEAD authentication failed: wrong key, nonce or aad, or tampered data.
The structured payload of a CryptoError, discriminated by
code:e.details.code === "InvalidSize"narrows to{ what, expected, actual }.