diff --git a/doc/api/crypto.md b/doc/api/crypto.md index ef59e8c0d4741f..7cd2dd26f2c3c2 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -537,6 +537,9 @@ of the ciphertext in bytes. See [CCM mode][]. The `decipher.setAAD()` method must be called before [`decipher.update()`][]. +When passing a string as the `buffer`, please consider +[caveats when using strings as inputs to cryptographic APIs][]. + ### `decipher.setAuthTag(buffer[, encoding])`