Skip to content

Commit

Permalink
doc: change the order of crypto.publicDecrypt
Browse files Browse the repository at this point in the history
PR-URL: #767
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
popomore authored and bnoordhuis committed Feb 9, 2015
1 parent 3f473ef commit 7c56868
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/api/crypto.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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
Expand Down

0 comments on commit 7c56868

Please sign in to comment.