aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/chacha20
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/zinc/chacha20')
-rw-r--r--src/crypto/zinc/chacha20/chacha20-arm-glue.c (renamed from src/crypto/zinc/chacha20/chacha20-arm-glue.h)2
-rw-r--r--src/crypto/zinc/chacha20/chacha20-mips-glue.c (renamed from src/crypto/zinc/chacha20/chacha20-mips-glue.h)2
-rw-r--r--src/crypto/zinc/chacha20/chacha20-x86_64-glue.c (renamed from src/crypto/zinc/chacha20/chacha20-x86_64-glue.h)2
-rw-r--r--src/crypto/zinc/chacha20/chacha20.c8
4 files changed, 7 insertions, 7 deletions
diff --git a/src/crypto/zinc/chacha20/chacha20-arm-glue.h b/src/crypto/zinc/chacha20/chacha20-arm-glue.c
index 163815f..a397d84 100644
--- a/src/crypto/zinc/chacha20/chacha20-arm-glue.h
+++ b/src/crypto/zinc/chacha20/chacha20-arm-glue.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 OR MIT */
+// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/
diff --git a/src/crypto/zinc/chacha20/chacha20-mips-glue.h b/src/crypto/zinc/chacha20/chacha20-mips-glue.c
index 9630cd0..04235ca 100644
--- a/src/crypto/zinc/chacha20/chacha20-mips-glue.h
+++ b/src/crypto/zinc/chacha20/chacha20-mips-glue.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 OR MIT */
+// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/
diff --git a/src/crypto/zinc/chacha20/chacha20-x86_64-glue.h b/src/crypto/zinc/chacha20/chacha20-x86_64-glue.c
index b1fc4c8..b89d5e1 100644
--- a/src/crypto/zinc/chacha20/chacha20-x86_64-glue.h
+++ b/src/crypto/zinc/chacha20/chacha20-x86_64-glue.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 OR MIT */
+// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/
diff --git a/src/crypto/zinc/chacha20/chacha20.c b/src/crypto/zinc/chacha20/chacha20.c
index 3f0392f..bc7e9be 100644
--- a/src/crypto/zinc/chacha20/chacha20.c
+++ b/src/crypto/zinc/chacha20/chacha20.c
@@ -16,11 +16,11 @@
#include <crypto/algapi.h> // For crypto_xor_cpy.
#if defined(CONFIG_ZINC_ARCH_X86_64)
-#include "chacha20-x86_64-glue.h"
+#include "chacha20-x86_64-glue.c"
#elif defined(CONFIG_ZINC_ARCH_ARM) || defined(CONFIG_ZINC_ARCH_ARM64)
-#include "chacha20-arm-glue.h"
+#include "chacha20-arm-glue.c"
#elif defined(CONFIG_ZINC_ARCH_MIPS)
-#include "chacha20-mips-glue.h"
+#include "chacha20-mips-glue.c"
#else
static void __init chacha20_fpu_init(void)
{
@@ -159,7 +159,7 @@ void hchacha20(u32 derived_key[CHACHA20_KEY_WORDS],
}
EXPORT_SYMBOL(hchacha20);
-#include "../selftest/chacha20.h"
+#include "../selftest/chacha20.c"
static bool nosimd __initdata = false;