RFR: 8046943: RSA Acceleration

Andrew Haley aph at redhat.com
Mon Jun 29 13:24:56 UTC 2015


On 06/29/2015 02:19 PM, David M. Lloyd wrote:
> Out of curiosity, instead of e.g.:
> 
>    unsigned long *scratch = (unsigned long *)alloca(total_allocation);
> 
> Could you not just use e.g.:
> 
>    unsigned long scratch[longwords * 4];
> 
> and avoid alloca altogether?

No.  Variable-length arrays are now in Standard C but not C++.

https://groups.google.com/forum/#!topic/comp.std.c++/K_4lgA1JYeg

I imagine that C++ will eventually support them, but not today.

Andrew.



More information about the security-dev mailing list