Commit f492a30
committed
getting-started: Reduce RSA sign stack usage
On targets with limited stack available to the main thread, our example
can run out of stack space when doing RSA encryption. This can lead to
stack overflows which cause undefined behavior. Move the RSA key and
signature to static RAM instead of stack to reduce the stack footprint
of message signing done by the example.1 parent 58ee0a9 commit f492a30
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments