1 |
On L, 2017-11-11 at 00:10 +0000, Jorge Almeida wrote: |
2 |
> Well, most programmers probably won't care about this stuff anyway, |
3 |
> and people who deal with cryptography tend to be more cautious than |
4 |
> average. But I'm not really making a case for safe versions of known |
5 |
> functions. After all, the usual functions do fine for most |
6 |
> applications. memset() would be enough to clear RAM with sensitive |
7 |
> data if we had a pragma (or equivalent) to convince the compiler to |
8 |
> not ignore it (I mean a pragma to invoke on a particular function |
9 |
> definition when the programmer feels that a black box behaviour is |
10 |
> undesirable). Of course, solving the problem of the compiler copying |
11 |
> stuff around might be harder nut to crack. |
12 |
|
13 |
Sounds like you want explicit_bzero from libbsd? |