symm/{chacha,salsa20}.h: Mark the cipher classes as `extern'.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 11 Jun 2018 15:36:33 +0000 (16:36 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 11 Jun 2018 15:37:16 +0000 (16:37 +0100)
Saved by vague linkage, but this is not good.

symm/chacha.h
symm/salsa20.h

index 4e5a765..994cfa2 100644 (file)
@@ -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 -------------------------*/
 
index 043b22d..317a34c 100644 (file)
@@ -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 -------------------------*/