diff options
author | Fedor Indutny <fedor@indutny.com> | 2015-01-27 22:58:14 +0300 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2015-01-28 02:02:52 +0300 |
commit | 87e62bd4c87e8674e3d1c432506e9b4991784ee2 (patch) | |
tree | aa377dab8988789ac34dd4df50a1eba7ca8dcae4 /src/node_crypto.h | |
parent | b50fea4d490278b291321e6b96c49cf20bee1552 (diff) | |
download | android-node-v8-87e62bd4c87e8674e3d1c432506e9b4991784ee2.tar.gz android-node-v8-87e62bd4c87e8674e3d1c432506e9b4991784ee2.tar.bz2 android-node-v8-87e62bd4c87e8674e3d1c432506e9b4991784ee2.zip |
crypto: implement privateEncrypt/publicDecrypt
PR-URL: https://github.com/iojs/io.js/pull/625
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Fix iojs/io.js#477
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 05ab0739c1..75ffe4f31d 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -553,8 +553,8 @@ class PublicKeyCipher { const unsigned char *in, size_t inlen); enum Operation { - kEncrypt, - kDecrypt + kPublic, + kPrivate }; template <Operation operation, |