Skip to content

Conversation

@zonyitoo
Copy link
Contributor

@zonyitoo zonyitoo commented Mar 10, 2022

The current implementation will require a copy operation for key in every call of encrypt_* and decrypt_* functions.

Copy link
Member

@tarcieri tarcieri left a comment

Choose a reason for hiding this comment

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

Thanks! One small issue but otherwise this looks good

Preventing the Key being copied every time when calling encrypt_* and
decrypt_*
@tarcieri tarcieri merged commit fe03c1f into RustCrypto:master Mar 11, 2022
@zonyitoo zonyitoo deleted the optimize-aead-key branch March 11, 2022 01:06
@zonyitoo
Copy link
Contributor Author

One more thing: digest should be upgraded to ^1.10. I am working on it.

@tarcieri
Copy link
Member

@zonyitoo digest needs to be upgraded in conjunction with the elliptic curve crate dependencies, which currently use digest v0.9.

The next release of the elliptic curve crate dependencies will upgrade to digest v0.10.

If you bump them now, you'll need to bump them all to prerelease versions.

@zonyitoo
Copy link
Contributor Author

Ah, then I will stop right here. Will you consider making a new release with these changes? @tarcieri

@tarcieri
Copy link
Member

Sure

@zonyitoo
Copy link
Contributor Author

Ah.. May I ask when will you publish it to crates.io?

@tarcieri
Copy link
Member

Currently working on some other things, but in the next day or so

zonyitoo added a commit to shadowsocks/shadowsocks-crypto that referenced this pull request Mar 11, 2022
@zonyitoo
Copy link
Contributor Author

Ah @tarcieri , sorry to disturb, would you make a release to crates.io today or tomorrow?

@tarcieri tarcieri mentioned this pull request Mar 12, 2022
@tarcieri
Copy link
Member

#81

zonyitoo added a commit to shadowsocks/shadowsocks-rust that referenced this pull request Mar 13, 2022
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