[Mono-dev] [PATCH] SecureString implementation

Sebastien Pouliot sebastien.pouliot at gmail.com
Fri Dec 9 15:14:57 EST 2005


Hello,

This patch almost complete the SecureString implementation. The missing
pieces are:
- the new Marshal.SecureStringTo... methods; and
- that, AFAIK, the runtime doesn't support CriticalFinalizerObject

SecureString is implemented on top of ProtectedMemory. On Windows Data
Protection API (DPAPI) is used to implement ProtectedMemory while on Linux
(and other platforms) I added AES support into the runtime (so we get
partial ProtectedMemory support).

The AES implementation used (too large to be part of the patch) can be found
at:
http://www.mirrors.wiretapped.net/security/cryptography/algorithms/aes/aes-c-rijmen/

P.S. Support for some of the new Marshal methods will be added later.

Sebastien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051209/344e8186/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ss.runtime.20051209.diff
Type: text/x-patch
Size: 14047 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051209/344e8186/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ss.managed.20051209.diff
Type: text/x-patch
Size: 4058 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051209/344e8186/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ProtectedMemory.cs
Type: text/x-csharp
Size: 1708 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051209/344e8186/attachment-0002.bin 


More information about the Mono-devel-list mailing list