]> git.lizzy.rs Git - plan9front.git/commitdiff
libsec: have 16 32-bit words in DigestState to avoid out of bounds warnings for poly1305
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 28 Feb 2016 08:09:41 +0000 (09:09 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 28 Feb 2016 08:09:41 +0000 (09:09 +0100)
sys/include/libsec.h

index 09db4f0f09606309fe545a8a9484ab054de82b9b..bd76b13777a7d422c3992cc084a8402fad0dbdbb 100644 (file)
@@ -215,7 +215,7 @@ struct DigestState
 {
        uvlong  len;
        union {
-               u32int  state[8];
+               u32int  state[16];
                u64int  bstate[8];
        };
        uchar   buf[256];