Browse Source

doc: change the order of crypto.publicDecrypt

PR-URL: https://github.com/iojs/io.js/pull/767
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
v1.8.0-commit
Haoliang Gao 10 years ago
committed by Ben Noordhuis
parent
commit
7c568684b8
  1. 10
      doc/api/crypto.markdown

10
doc/api/crypto.markdown

@ -692,6 +692,11 @@ key to this method.
NOTE: All paddings are defined in `constants` module. 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) ## crypto.privateDecrypt(private_key, buffer)
Decrypts `buffer` with `private_key`. 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`. See above for details. Has the same API as `crypto.privateDecrypt`.
Default padding is `RSA_PKCS1_PADDING`. 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 ## crypto.DEFAULT_ENCODING
The default encoding to use for functions that can take either strings The default encoding to use for functions that can take either strings

Loading…
Cancel
Save