diff options
author | James M Snell <jasnell@gmail.com> | 2020-08-25 20:05:51 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-10-08 03:27:05 +0300 |
commit | dae283d96fd31ad0f30840a7e55ac97294f505ac (patch) | |
tree | 8f7f87e50411e8965cb83d9b280035f36d355fbc /doc/api/errors.md | |
parent | ba77dc8597cbcf42feea59f1381512d421ec9cc5 (diff) |
crypto: refactoring internals, add WebCrypto
Fixes: https://github.com/nodejs/node/issues/678
Refs: https://github.com/nodejs/node/issues/26854
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/35093
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api/errors.md')
-rw-r--r-- | doc/api/errors.md | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md index 2bbed76b155..e4354bc6f95 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -792,22 +792,134 @@ The given crypto keys are incompatible with the attempted operation. The selected public or private key encoding is incompatible with other options. +<a id="ERR_CRYPTO_INITIALIZATION_FAILED"></a> +### `ERR_CRYPTO_INITIALIZATION_FAILED` +<!-- YAML +added: REPLACEME +--> + +Initialization of the crypto subsystem failed. + +<a id="ERR_CRYPTO_INVALID_AUTH_TAG"></a> +### `ERR_CRYPTO_INVALID_AUTH_TAG` +<!-- YAML +added: REPLACEME +--> + +An invalid authentication tag was provided. + +<a id="ERR_CRYPTO_INVALID_COUNTER"></a> +### `ERR_CRYPTO_INVALID_COUNTER` +<!-- YAML +added: REPLACEME +--> + +An invalid counter was provided for a counter-mode cipher. + +<a id="ERR_CRYPTO_INVALID_CURVE"></a> +### `ERR_CRYPTO_INVALID_CURVE` +<!-- YAML +added: REPLACEME +--> + +An invalid elliptic-curve was provided. + <a id="ERR_CRYPTO_INVALID_DIGEST"></a> ### `ERR_CRYPTO_INVALID_DIGEST` An invalid [crypto digest algorithm][] was specified. +<a id="ERR_CRYPTO_INVALID_IV"></a> +### `ERR_CRYPTO_INVALID_IV` +<!-- YAML +added: REPLACEME +--> + +An invalid initialization vector was provided. + +<a id="ERR_CRYPTO_INVALID_JWK"></a> +### `ERR_CRYPTO_INVALID_JWK` +<!-- YAML +added: REPLACEME +--> + +An invalid JSON Web Key was provided. + <a id="ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"></a> ### `ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE` The given crypto key object's type is invalid for the attempted operation. +<a id="ERR_CRYPTO_INVALID_KEYLEN"></a> +### `ERR_CRYPTO_INVALID_KEYLEN` +<!-- YAML +added: REPLACEME +--> + +An invalid key length was provided. + +<a id="ERR_CRYPTO_INVALID_KEYPAIR"></a> +### `ERR_CRYPTO_INVALID_KEYPAIR` +<!-- YAML +added: REPLACEME +--> + +An invalid key pair was provided. + +<a id="ERR_CRYPTO_INVALID_KEYTYPE"></a> +### `ERR_CRYPTO_INVALID_KEYTYPE` +<!-- YAML +added: REPLACEME +--> + +An invalid key type was provided. + +<a id="ERR_CRYPTO_INVALID_MESSAGELEN"></a> +### `ERR_CRYPTO_INVALID_MESSAGELEN` +<!-- YAML +added: REPLACEME +--> + +An invalid message length was provided. + +<a id="ERR_CRYPTO_INVALID_SCRYPT_PARAMS"></a> +### `ERR_CRYPTO_INVALID_SCRYPT_PARAMS` +<!-- YAML +added: REPLACEME +--> + +Invalid scrypt algorithm parameters were provided. + <a id="ERR_CRYPTO_INVALID_STATE"></a> ### `ERR_CRYPTO_INVALID_STATE` A crypto method was used on an object that was in an invalid state. For instance, calling [`cipher.getAuthTag()`][] before calling `cipher.final()`. +<a id="ERR_CRYPTO_INVALID_TAG_LENGTH"></a> +### `ERR_CRYPTO_INVALID_TAG_LENGTH` +<!-- YAML +added: REPLACEME +--> + +An invalid authentication tag length was provided. + +<a id="ERR_CRYPTO_JOB_INIT_FAILED"></a> +### `ERR_CRYPTO_JOB_INIT_FAILED` +<!-- YAML +added: REPLACEME +--> + +Initialization of an asynchronous crypto operation failed. + +<a id="ERR_CRYPTO_OPERATION_FAILED"></a> +### `ERR_CRYPTO_OPERATION_FAILED` +<!-- YAML +added: REPLACEME +--> + +A crypto operation failed for an otherwise unspecified reason. + <a id="ERR_CRYPTO_PBKDF2_ERROR"></a> ### `ERR_CRYPTO_PBKDF2_ERROR` @@ -853,6 +965,14 @@ An unknown Diffie-Hellman group name was given. See The [`fs.Dir`][] was previously closed. +<a id"ERR_CRYPTO_UNSUPPORTED_OPERATION"></a> +### `ERR_CRYPTO_UNSUPPORTED_OPERATION` +<!-- YAML +added: REPLACEME +--> + +An attempt to invoke an unsupported crypto operation was made. + <a id="ERR_DIR_CONCURRENT_OPERATION"></a> ### `ERR_DIR_CONCURRENT_OPERATION` <!-- YAML |