Skip to content

Security: Replace rand() with crypto::rand() in AES key generation#27

Open
post-hum wants to merge 4 commits intoscala-network:masterfrom
post-hum:fix-oaes-rand
Open

Security: Replace rand() with crypto::rand() in AES key generation#27
post-hum wants to merge 4 commits intoscala-network:masterfrom
post-hum:fix-oaes-rand

Conversation

@post-hum
Copy link
Copy Markdown

Security: Replace rand() with crypto::rand() in AES

Problem: rand() used for AES key generation when OAES_HAVE_ISAAC not defined.

Fix: Replace with crypto::rand<uint8_t>()

Impact: Critical (CVSS 9.8) - predictable AES keys

@hayzamjs please review

Critical: rand() used for AES keys when OAES_HAVE_ISAAC not defined.
Fix: Use crypto::rand<uint8_t>() instead.

Impact: Prevents predictable AES keys and wallet decryption.
@post-hum
Copy link
Copy Markdown
Author

The code formatting changes (tabs → spaces) were applied automatically during editing. If this causes any concerns, I can create a separate PR with only the security fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant