# Re: \[PATCH net-next v5 07/20\] zinc: Poly1305 generic C implementations and selftest

- From: Andy Lutomirski \<luto@amacapital.net\>
- Date: 2018-09-19 04:13:13 
- List: netdev
- Page: https://ratatoskr.run/netdev/2018/09/5384737
- Thread: https://ratatoskr.run/netdev/2018/09/5384209/t.md

```text

> On Sep 18, 2018, at 6:35 PM, Jason A. Donenfeld [ref] wrote:
> 
>> On Wed, Sep 19, 2018 at 2:50 AM Eric Biggers [ref] wrote:
>> Hardcoding the 'input' array to 600 bytes forces the full amount of space to be
>> reserved in the kernel image for every test vector.  Also, if anyone adds a
>> longer test vector they will need to remember to increase the value.
>> 
>> It should be a const pointer instead, like the test vectors in crypto/testmgr.h.
> 
> I know. The agony. This has been really annoying me. I originally did
> it the right way, but removed it last week, when I noticed that gcc
> failed to put it in the initconst section:
> 
> https://git.zx2c4.com/WireGuard/commit/?id=f4698d20f13946afc6ce99e98685ba3f9adc4474
> 
> Even changing the (u8[]){ ... } into a (const u8[]){ ... } or even
> into a const string literal does not do the trick. It makes it into
> the constant data section with const, but it does not make it into the
> initconst section. What a bummer.
> 
> I went asking about this on the gcc mailing list, to see if there was
> just some aspect of C that I had overlooked:
> https://gcc.gnu.org/ml/gcc/2018-09/msg00043.html

Can you not uglify the code a bit by using normal (non-compound) liberals as described in the response to that email?
```
