Skip to content

Commit 6ddb480

Browse files
author
BAM5
committed
Fixed some comments referring to old code.
1 parent f762737 commit 6ddb480

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libs/rsa.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
/*
4343
* OAEP / Padding function modifications
4444
*
45-
* Modified Key object to accept a padding key in it's options object.
46-
* padding key's value may be any object with the appropriate properties & method signatures:
45+
* Modified Key object to utilize a scheme object when encrypting/decrypting and signing/verifying.
46+
* The Scheme object may be any object with the appropriate method signatures:
4747
* Encryption Schemes
4848
* maxMessageLength(key:RSA.Key):uint
4949
* encrypt(key:RSA.Key, message:Buffer):Buffer
@@ -53,9 +53,9 @@
5353
* sign(key:RSA.Key, data:Buffer):Buffer
5454
* verify(key:RSA.Key, data:Buffer, signature:Buffer):Boolean
5555
*
56-
* If a padding scheme has options then the padding value can be an instantiated class.
57-
* This allows for future changes by making it easy to add new schemes.
58-
* This also allows for users to implement their own padding schemes, although not recommended.
56+
* If a scheme has options(like hashing function or mask generation function) then the scheme object can be an instantiated class.
57+
* These modifications allow for future changes by making it easy to add new schemes.
58+
* This also allows for users to implement their own schemes, although not recommended.
5959
*
6060
* 2014 BAM5
6161
*/

0 commit comments

Comments
 (0)