Commit 6d579fa
Keypair: zeroize pk and sk in case of failure
If the pair-wise consistency test fails (e.g., due to OOM), we currently do
still return the pk and sk.
This commit changes that to zeroize the buffers instead which lowers the risk
of API mis-use.
Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>1 parent e29da58 commit 6d579fa
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
241 | 248 | | |
242 | 249 | | |
243 | 250 | | |
| |||
0 commit comments