Skip to content

Commit 7c56868

Browse files
popomorebnoordhuis
authored andcommitted
doc: change the order of crypto.publicDecrypt
PR-URL: #767 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 3f473ef commit 7c56868

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/crypto.markdown

+5-5
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,11 @@ key to this method.
692692

693693
NOTE: All paddings are defined in `constants` module.
694694

695+
## crypto.publicDecrypt(public_key, buffer)
696+
697+
See above for details. Has the same API as `crypto.publicEncrypt`. Default
698+
padding is `RSA_PKCS1_PADDING`.
699+
695700
## crypto.privateDecrypt(private_key, buffer)
696701

697702
Decrypts `buffer` with `private_key`.
@@ -715,11 +720,6 @@ NOTE: All paddings are defined in `constants` module.
715720
See above for details. Has the same API as `crypto.privateDecrypt`.
716721
Default padding is `RSA_PKCS1_PADDING`.
717722

718-
## crypto.publicDecrypt(public_key, buffer)
719-
720-
See above for details. Has the same API as `crypto.publicEncrypt`. Default
721-
padding is `RSA_PKCS1_PADDING`.
722-
723723
## crypto.DEFAULT_ENCODING
724724

725725
The default encoding to use for functions that can take either strings

0 commit comments

Comments
 (0)