From 7c568684b834a6a3c4d15bb29d2f95cf76773cb8 Mon Sep 17 00:00:00 2001 From: Haoliang Gao Date: Mon, 9 Feb 2015 17:13:28 +0800 Subject: [PATCH] doc: change the order of crypto.publicDecrypt PR-URL: https://github.com/iojs/io.js/pull/767 Reviewed-By: Ben Noordhuis --- doc/api/crypto.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 5aa9e9beda..9cbaeeb205 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