Skip to content

Commit

Permalink
A trick to freeze the secret for test purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemov-ledger committed Jan 21, 2025
1 parent 9b6b560 commit f35a861
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/monero_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,8 @@ int monero_rng_mod_order(unsigned char *r, size_t r_len) {
unsigned char rnd[32 + 8];
int error;
cx_rng(rnd, 32 + 8);
/* To uncomment in order to freeze the secret for test purposes */
/* memset(rnd, 0xBB, 32 + 8); */

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
error = cx_math_modm_no_throw(rnd, 32 + 8, (unsigned char *)C_ED25519_ORDER, 32);
if (error) {
return SW_SECURITY_INTERNAL;
Expand Down

0 comments on commit f35a861

Please sign in to comment.