From 6a2654167a4c6ece96c96a6a235d805ca21661da Mon Sep 17 00:00:00 2001 Message-Id: <6a2654167a4c6ece96c96a6a235d805ca21661da.1715221702.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 11 Jun 2018 16:36:33 +0100 Subject: [PATCH] symm/{chacha,salsa20}.h: Mark the cipher classes as `extern'. Organization: Straylight/Edgeware From: Mark Wooding Saved by vague linkage, but this is not good. --- symm/chacha.h | 6 +++--- symm/salsa20.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/symm/chacha.h b/symm/chacha.h index 4e5a765a..994cfa2b 100644 --- a/symm/chacha.h +++ b/symm/chacha.h @@ -319,9 +319,9 @@ extern const octet chacha_keysz[]; #define xchacha12_keysz chacha_keysz #define xchacha8_keysz chacha_keysz -const gccipher chacha20, chacha12, chacha8; -const gccipher chacha20_ietf, chacha12_ietf, chacha8_ietf; -const gccipher xchacha20, xchacha12, xchacha8; +extern const gccipher chacha20, chacha12, chacha8; +extern const gccipher chacha20_ietf, chacha12_ietf, chacha8_ietf; +extern const gccipher xchacha20, xchacha12, xchacha8; /*----- Generic random number generator interface -------------------------*/ diff --git a/symm/salsa20.h b/symm/salsa20.h index 043b22d1..317a34c1 100644 --- a/symm/salsa20.h +++ b/symm/salsa20.h @@ -317,9 +317,9 @@ extern const octet salsa20_keysz[]; #define xsalsa2012_keysz salsa20_keysz #define xsalsa208_keysz salsa20_keysz -const gccipher salsa20, salsa2012, salsa208; -const gccipher salsa20_ietf, salsa2012_ietf, salsa208_ietf; -const gccipher xsalsa20, xsalsa2012, xsalsa208; +extern const gccipher salsa20, salsa2012, salsa208; +extern const gccipher salsa20_ietf, salsa2012_ietf, salsa208_ietf; +extern const gccipher xsalsa20, xsalsa2012, xsalsa208; /*----- Generic random number generator interface -------------------------*/ -- [mdw]