Skip to content

Commit e2497a8

Browse files
committed
update readme
1 parent 0cefeba commit e2497a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ Return decrypted data.<br/>
187187
* buffer — `{buffer}` — data for decrypting. Takes Buffer object or base64 encoded string.<br/>
188188
* encoding — `{string}` — encoding for result string. Can also take `'buffer'` for raw Buffer object, or `'json'` for automatic JSON.parse result. Default `'buffer'`.
189189

190+
> *Notice:* usage encryptPrivate and decryptPublic with `pkcs1_oaep` padding not described in the RSA [specification](http://www.emc.com/collateral/white-papers/h11300-pkcs-1v2-2-rsa-cryptography-standard-wp.pdf)
191+
190192
### Signing/Verifying
191193
```javascript
192194
key.sign(buffer, [encoding], [source_encoding]);
@@ -212,9 +214,7 @@ Questions, comments, bug reports, and pull requests are all welcome.
212214
### 0.2.20
213215
* Added `.encryptPrivate()` and `.decryptPublic()` methods
214216
* Encrypt/decrypt methods in nodejs 0.12.x and io.js using native implementation (> 40x speed boost)
215-
216-
**KNOWN ISSUES**:
217-
* `encryptPrivate` and `decryptPublic` don't have native implementation in nodejs and can't be use in native implementation with pkcs1_oaep padding in io.js
217+
* *KNOWN ISSUE*:`encryptPrivate` and `decryptPublic` don't have native implementation in nodejs and can't be use in native implementation with pkcs1_oaep padding in io.js
218218

219219
### 0.2.10
220220
* **Methods `.exportPrivate()` and `.exportPublic()` was replaced by `.exportKey([format])`.**

0 commit comments

Comments
 (0)