From: Calvin Metcalf Date: Thu, 29 Jan 2015 21:05:41 +0000 (-0500) Subject: docs: add note about default padding in crypto X-Git-Tag: v1.1.0~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7604e6decc441a1110567e98f20f7ee122179d54;p=platform%2Fupstream%2Fnodejs.git docs: add note about default padding in crypto Adds a note that the default padding for publicDecrypt/privateEncrypt is RSA_PKCS1_PADDING instead of RSA_PKCS1_OAEP_PADDING as it is for privateDecrypt/publicEncrypt. PR-URL: https://github.com/iojs/io.js/pull/659 Reviewed-By: Brendan Ashworth --- diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index b6834d0..2c8714f 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -710,10 +710,12 @@ NOTE: All paddings are defined in `constants` module. ## crypto.privateEncrypt(private_key, buffer) 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`. +See above for details. Has the same API as `crypto.publicEncrypt`. Default +padding is `RSA_PKCS1_PADDING`. ## crypto.DEFAULT_ENCODING