File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11rules :
22 - name : no-void-functions
33 trigger : >-
4- All functions must return a value. Avoid using void return types to ensure
5- error values can be propagated upstream.
4+ All public functions (WOLFSSL_API) must return a value. Avoid using " void"
5+ return types to ensure error values can be propagated upstream.
66 solution : >-
77 Change the function to return an appropriate error code or result instead
88 of void. Ensure all return paths provide a meaningful value.
5151 variables to minimize stack usage within the function.
5252 - name : prefer-constant-time
5353 trigger : >-
54- Implement algorithms in constant time to prevent timing attacks and ensure
55- security.
54+ For private key based asymmetric algorithms implement in constant time
55+ to prevent timing attacks and ensure security.
5656 solution : >-
5757 Review and refactor algorithms to ensure their execution time does not
5858 depend on input values. Use constant-time libraries or functions where
@@ -153,3 +153,4 @@ rules:
153153 WOLFSSL_API. For functions local to the library but not static, use
154154 WOLFSSL_LOCAL and prefix the function name with wolfssl_local_ or wc_local_
155155 to clearly indicate internal usage.
156+ -
You can’t perform that action at this time.
0 commit comments