-
-
Notifications
You must be signed in to change notification settings - Fork 705
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
Add secureZeroMemory function in Phobos #9611
Labels
Comments
code (@MartinNowak) commented on 2014-04-27T13:16:37Z+1, this is essential for resilient crypto code. |
bugzilla (@WalterBright) commented on 2014-04-27T18:47:38ZSo who wants to implement it? |
bearophile_hugs commented on 2014-04-27T18:52:25Z(In reply to Walter Bright from comment #2)
> So who wants to implement it?
How do you like to implement it? As a special case, or introducing some kind of generic and reusable annotation, like @keep_function that tells the D compiler to never optimize away the calls to a specific function? I don't know what other cases there are of functions that must never be removed. |
yebblies commented on 2014-07-31T17:40:05Z(In reply to bearophile_hugs from comment #3)
> (In reply to Walter Bright from comment #2)
> > So who wants to implement it?
>
> How do you like to implement it? As a special case, or introducing some kind
> of generic and reusable annotation, like @keep_function that tells the D
> compiler to never optimize away the calls to a specific function? I don't
> know what other cases there are of functions that must never be removed.
volatileMemset |
bugzilla (@WalterBright) commented on 2014-09-09T19:03:32ZvolatileMemset() should call the C memset_s() function, if that function exists.
Also, there should be a zeroRegisters() function that zeros out all the scratch registers. |
blah38621 commented on 2014-09-09T19:12:24ZI believe this should be in the runtime rather than phobos, primarily because
it is very dependent on the specific architecture in use. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bearophile_hugs reported this on 2013-07-17T04:30:49Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=10661
CC List
Description
The text was updated successfully, but these errors were encountered: