J
Jonathan Lee
(Sorry to anyone who saw this in sci.crypt as well, but I'm curious
what both groups have to say)
Hi all,
I am writing a large integer library for math related work. In
principle, it could be used for security except that it doesn't
securely allocate or clear memory. Maybe it doesn't do other things,
but my question is basically about the memory allocation. Suppose
another programmer, who is better at such things, wanted to "replace"
the alloc with a secured version. Can I facilitate this? Allow them
to subclass, and make the allocator a virtual function? Or would such
a designer just prefer to rewrite the function? Or overload new[] and
delete[] so it happens without touching the class?
Any thoughts?
--Jonathan
what both groups have to say)
Hi all,
I am writing a large integer library for math related work. In
principle, it could be used for security except that it doesn't
securely allocate or clear memory. Maybe it doesn't do other things,
but my question is basically about the memory allocation. Suppose
another programmer, who is better at such things, wanted to "replace"
the alloc with a secured version. Can I facilitate this? Allow them
to subclass, and make the allocator a virtual function? Or would such
a designer just prefer to rewrite the function? Or overload new[] and
delete[] so it happens without touching the class?
Any thoughts?
--Jonathan