Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

teos-common: Fixes cryptography tests utils #245

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

sr-gi
Copy link
Member

@sr-gi sr-gi commented Oct 18, 2023

I recently realized that teos-common::cryptography::get_random_keypair was potentially incorrect.

The bytes used to generate the SecretKey were created outside the testing loop, meaning that if they didn't yield a valid secret key for whatever reason, the function would loop forever. I don't think this can really be the case, but this patch is certainly more correct than the older approach.

@sr-gi sr-gi force-pushed the fix_crypto_utils branch from 4117042 to df4fbb7 Compare March 20, 2024 19:37
@sr-gi sr-gi force-pushed the fix_crypto_utils branch 2 times, most recently from 8542346 to 7ee05a0 Compare March 28, 2024 09:11
@sr-gi sr-gi requested a review from mariocynicys March 28, 2024 09:11
@sr-gi sr-gi force-pushed the fix_crypto_utils branch from 7ee05a0 to 95f1c4c Compare March 28, 2024 11:59
Copy link
Collaborator

@mariocynicys mariocynicys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sr-gi sr-gi merged commit c9f82bc into talaia-labs:master Apr 2, 2024
7 checks passed
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.

2 participants