diff --git a/doc/api/crypto.md b/doc/api/crypto.md index dfe49afa497781..5c735081b01681 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])`