File tree 1 file changed +6
-2
lines changed
contracts/utils/cryptography
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,12 @@ library RSA {
36
36
* 2048 bits. If you use a smaller key, consider replacing it with a larger, more secure, one.
37
37
*
38
38
* WARNING: This verification algorithm doesn't prevent replayability. If called multiple times with the same
39
- * digest, public key and (valid signature), it will return true every time. Consider including an onchain nonce or
40
- * unique identifier in the message to prevent replay attacks.
39
+ * digest, public key and (valid signature), it will return true every time. Consider including an onchain nonce
40
+ * or unique identifier in the message to prevent replay attacks.
41
+ *
42
+ * WARNING: This verification algorithm supports any exponent. NIST recommends using `65537` (or higher).
43
+ * That is the default value many libraries use, such as OpenSSL. Developers may choose to reject public keys
44
+ * using a low exponent out of security concerns.
41
45
*
42
46
* @param digest the digest to verify
43
47
* @param s is a buffer containing the signature
You can’t perform that action at this time.
0 commit comments