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

Use non swappable, non movable memory to store secrets #40

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

klakplok
Copy link
Contributor

@klakplok klakplok commented Dec 6, 2016

@dsheets , this PR is a WIP, I did not proofread my code very thoroughly yet, I'd like your comments on the structure / choices before polishing it if you can find the time :).
It does not change the API (except for adding two functions and some comments), but it touches quite a lot of code in the implementation (as expected).

@klakplok klakplok changed the title Use non swappable, non movable memory to store secrets in memory Use non swappable, non movable memory to store secrets Dec 6, 2016
@dsheets
Copy link
Owner

dsheets commented Dec 8, 2016

This looks like a reasonable approach. I recommend using memcpy to copy between bigbytes and bytes. You may need to add a dep on @yallop's memcpy package for that (or bind it directly but I'd prefer a dep, oddly).

@klakplok
Copy link
Contributor Author

klakplok commented Dec 9, 2016

Cool! Actually, I did not introduce memcpy because the existing Bigbytes.to_bytes/of_bytes were written with a loop, but I'll gladly do it.

@klakplok
Copy link
Contributor Author

klakplok commented Dec 14, 2016

@dsheets Ok, I suppose the PR is ready for a first complete review now.

@dsheets
Copy link
Owner

dsheets commented Jan 9, 2017

I have not forgotten about this PR. I've been off the grid for several weeks and I'm just now catching up. I hope to review, merge, and release this week with review tonight GMT. Thanks for your patience.

@vbmithr
Copy link
Contributor

vbmithr commented Dec 16, 2017

ping?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants