File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4444 *
4545 * Modified Key object to accept a padding key in it's options object.
4646 * padding key's value may be any object with the appropriate properties & method signatures:
47+ * Encryption Schemes
4748 * maxMessageLength(key:RSA.Key):uint
4849 * encrypt(key:RSA.Key, message:Buffer):Buffer
4950 * decrypt(key:RSA.Key, encryptedMessage:Buffer):Buffer
50- * sign(key:RSA.key, data:Buffer, hash:String):Buffer
51+ *
52+ * Signature Schemes
53+ * sign(key:RSA.Key, data:Buffer):Buffer
54+ * verify(key:RSA.Key, data:Buffer, signature:Buffer):Boolean
55+ *
5156 * If a padding scheme has options then the padding value can be an instantiated class.
5257 * This allows for future changes by making it easy to add new schemes.
5358 * This also allows for users to implement their own padding schemes, although not recommended.
You can’t perform that action at this time.
0 commit comments