diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 5aa9e9bedab4e4..9cbaeeb20522b2 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -692,6 +692,11 @@ key to this method. NOTE: All paddings are defined in `constants` module. +## crypto.publicDecrypt(public_key, buffer) + +See above for details. Has the same API as `crypto.publicEncrypt`. Default +padding is `RSA_PKCS1_PADDING`. + ## crypto.privateDecrypt(private_key, buffer) Decrypts `buffer` with `private_key`. @@ -715,11 +720,6 @@ NOTE: All paddings are defined in `constants` module. See above for details. Has the same API as `crypto.privateDecrypt`. Default padding is `RSA_PKCS1_PADDING`. -## crypto.publicDecrypt(public_key, buffer) - -See above for details. Has the same API as `crypto.publicEncrypt`. Default -padding is `RSA_PKCS1_PADDING`. - ## crypto.DEFAULT_ENCODING The default encoding to use for functions that can take either strings