-
Notifications
You must be signed in to change notification settings - Fork 212
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
sm2: Fix heap allocation #1099
base: master
Are you sure you want to change the base?
sm2: Fix heap allocation #1099
Conversation
@MaxKingPor sorry this PR went by the wayside, can you rebase it and we can get it merged? |
6bc5abd
to
8a07d9e
Compare
use super::{Cipher, Mode, encrypting::EncryptingKey, kdf, vec}; | ||
/// Represents a decryption key used for decrypting messages using elliptic curve cryptography. | ||
#[derive(Clone)] | ||
pub struct DecryptingKey { |
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.
I'd prefer these names be retained, as they're more consistent with our other crates which identify key types by function
use super::{Cipher, kdf}; | ||
|
||
/// Decrypt messages using elliptic curve cryptography. | ||
pub trait EcDecrypt<C> |
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.
Not sure why a trait is necessary where when it has only one impl. What's the intended use case?
Fix sm2 heap allocation