File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
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 */
You can’t perform that action at this time.
0 commit comments