doc: change the order of crypto.publicDecrypt
authorHaoliang Gao <sakura9515@gmail.com>
Mon, 9 Feb 2015 09:13:28 +0000 (17:13 +0800)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 9 Feb 2015 12:33:26 +0000 (13:33 +0100)
PR-URL: https://github.com/iojs/io.js/pull/767
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
doc/api/crypto.markdown

index 5aa9e9b..9cbaeeb 100644 (file)
@@ -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