[Issue 10661] Add secureZeroMemory function in Phobos

2014-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10661

David Nadlinger  changed:

   What|Removed |Added

 CC||c...@klickverbot.at

--- Comment #1 from David Nadlinger  ---
+1, this is essential for resilient crypto code.

--


[Issue 10661] Add secureZeroMemory function in Phobos

2014-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10661

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com

--- Comment #2 from Walter Bright  ---
So who wants to implement it?

--


[Issue 10661] Add secureZeroMemory function in Phobos

2014-04-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10661

--- Comment #3 from bearophile_h...@eml.cc ---
(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.

--


[Issue 10661] Add secureZeroMemory function in Phobos

2014-07-31 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10661

yebblies  changed:

   What|Removed |Added

 CC||yebbl...@gmail.com

--- Comment #4 from yebblies  ---
(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

--


[Issue 10661] Add secureZeroMemory function in Phobos

2014-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10661

--- Comment #5 from Walter Bright  ---
volatileMemset() 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.

--


[Issue 10661] Add secureZeroMemory function in Phobos

2014-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10661

--- Comment #6 from Orvid King  ---
I believe this should be in the runtime rather than phobos, primarily because 
it is very dependent on the specific architecture in use.

--


[Issue 10661] Add secureZeroMemory function in Phobos

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10661

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P4

--