diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-05 23:20:40 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-06 01:03:16 +0200 |
commit | ff0f6e667ff877cd605d2b107c897b039f9829d9 (patch) | |
tree | e8f4a0fbebb6653ddeb076b71ec1bd6ae3f66bd9 /src/crypto/zinc/chacha20/chacha20-mips-glue.c | |
parent | 44f0a766097d862e4e2d225d1e33986807baf37f (diff) |
global: rename include'd C files to be .c
This is done by 259 other files in the kernel tree:
linux $ rg '#include.*\.c' -l | wc -l
259
Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc/chacha20/chacha20-mips-glue.c')
-rw-r--r-- | src/crypto/zinc/chacha20/chacha20-mips-glue.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/crypto/zinc/chacha20/chacha20-mips-glue.c b/src/crypto/zinc/chacha20/chacha20-mips-glue.c new file mode 100644 index 0000000..04235ca --- /dev/null +++ b/src/crypto/zinc/chacha20/chacha20-mips-glue.c @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ + +asmlinkage void chacha20_mips(u32 state[16], u8 *out, const u8 *in, + const size_t len); + +static void __init chacha20_fpu_init(void) +{ +} + +static inline bool chacha20_arch(struct chacha20_ctx *ctx, u8 *dst, + const u8 *src, size_t len, + simd_context_t *simd_context) +{ + chacha20_mips(ctx->state, dst, src, len); + return true; +} + + +static inline bool hchacha20_arch(u32 derived_key[CHACHA20_KEY_WORDS], + const u8 nonce[HCHACHA20_NONCE_SIZE], + const u8 key[HCHACHA20_KEY_SIZE], + simd_context_t *simd_context) +{ + return false; +} |