Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

secret_store: use ecies::encrypt/ecies::decrypt. #8125

Merged
merged 1 commit into from
Mar 15, 2018
Merged

Conversation

twittner
Copy link
Contributor

No description provided.

@parity-cla-bot
Copy link

It looks like @twittner signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@twittner twittner requested a review from svyatonik March 15, 2018 14:57
@twittner twittner added the A0-pleasereview 🤓 Pull request needs code review. label Mar 15, 2018
@@ -241,15 +241,15 @@ pub fn deserialize_message(header: &MessageHeader, payload: Vec<u8>) -> Result<M
pub fn encrypt_message(key: &KeyPair, message: SerializedMessage) -> Result<SerializedMessage, Error> {
let mut header: Vec<_> = message.into();
let payload = header.split_off(MESSAGE_HEADER_SIZE);
let encrypted_payload = encrypt_single_message(key.public(), &payload)?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't mind using the &[], but there are already a couple of places in SS where &ethcrypto::DEFAULT_MAC is passed instead. So maybe better to use the same value everywhere. But it is up to you.

@svyatonik svyatonik added A8-looksgood 🦄 Pull request is reviewed well. A4-awaitingci 🤖 Pull request is waiting for changes on the CI to complete tests before review/merge can begin. M4-core ⛓ Core client code / Rust. and removed A0-pleasereview 🤓 Pull request needs code review. A4-awaitingci 🤖 Pull request is waiting for changes on the CI to complete tests before review/merge can begin. labels Mar 15, 2018
@svyatonik svyatonik merged commit fed4864 into master Mar 15, 2018
@svyatonik svyatonik deleted the tw-auth-crypt branch March 15, 2018 15:49
General-Beck added a commit that referenced this pull request Mar 19, 2018
@5chdn 5chdn added this to the 1.11 milestone Mar 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants