-
Notifications
You must be signed in to change notification settings - Fork 1
BAC-199: Padding #2
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
Conversation
src/lib.rs
Outdated
| Ok(encrypt(&padded_message, recipient_pub_key)) | ||
| } | ||
|
|
||
| pub fn decrypt_padded(ciphertext_bytes: &[u8], recipient_priv_key: &PrivKey) -> Result<Vec<u8>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename this to decrypt_padded_unchecked and then add decrypt_padded which also takes padded_length as a parameter, and errs in case there is length mismatch? That I think would be a bit safer
This reverts commit c6c274c.
|
|
I guess with this PR, this repo can be made read-only? https://github.com/Cardinal-Cryptography/ecies-encryption-poc |
Marcin-Radecki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
DamianStraszak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this. Super clean now and the TS is there 💪
No description provided.