From: Haoliang Gao Date: Mon, 9 Feb 2015 09:13:28 +0000 (+0800) Subject: doc: change the order of crypto.publicDecrypt X-Git-Tag: v1.2.0~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c568684b834a6a3c4d15bb29d2f95cf76773cb8;p=platform%2Fupstream%2Fnodejs.git doc: change the order of crypto.publicDecrypt PR-URL: https://github.com/iojs/io.js/pull/767 Reviewed-By: Ben Noordhuis --- diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 5aa9e9b..9cbaeeb 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