mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
crypto: aegis128-neon - add header for internal prototypes
gcc warns if prototypes are only visible to the caller but not the callee: crypto/aegis128-neon-inner.c:134:6: warning: no previous prototype for 'crypto_aegis128_init_neon' [-Wmissing-prototypes] crypto/aegis128-neon-inner.c:164:6: warning: no previous prototype for 'crypto_aegis128_update_neon' [-Wmissing-prototypes] crypto/aegis128-neon-inner.c:221:6: warning: no previous prototype for 'crypto_aegis128_encrypt_chunk_neon' [-Wmissing-prototypes] crypto/aegis128-neon-inner.c:270:6: warning: no previous prototype for 'crypto_aegis128_decrypt_chunk_neon' [-Wmissing-prototypes] crypto/aegis128-neon-inner.c:316:5: warning: no previous prototype for 'crypto_aegis128_final_neon' [-Wmissing-prototypes] The prototypes cannot be in the regular aegis.h, as the inner neon code cannot include normal kernel headers. Instead add a new header just for the functions provided by this file. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
48e7fbf662
commit
4e3901fa84
17
crypto/aegis-neon.h
Normal file
17
crypto/aegis-neon.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#ifndef _AEGIS_NEON_H
|
||||||
|
#define _AEGIS_NEON_H
|
||||||
|
|
||||||
|
void crypto_aegis128_init_neon(void *state, const void *key, const void *iv);
|
||||||
|
void crypto_aegis128_update_neon(void *state, const void *msg);
|
||||||
|
void crypto_aegis128_encrypt_chunk_neon(void *state, void *dst, const void *src,
|
||||||
|
unsigned int size);
|
||||||
|
void crypto_aegis128_decrypt_chunk_neon(void *state, void *dst, const void *src,
|
||||||
|
unsigned int size);
|
||||||
|
int crypto_aegis128_final_neon(void *state, void *tag_xor,
|
||||||
|
unsigned int assoclen,
|
||||||
|
unsigned int cryptlen,
|
||||||
|
unsigned int authsize);
|
||||||
|
|
||||||
|
#endif
|
@ -16,6 +16,7 @@
|
|||||||
#define AEGIS_BLOCK_SIZE 16
|
#define AEGIS_BLOCK_SIZE 16
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include "aegis-neon.h"
|
||||||
|
|
||||||
extern int aegis128_have_aes_insn;
|
extern int aegis128_have_aes_insn;
|
||||||
|
|
||||||
|
@ -7,17 +7,7 @@
|
|||||||
#include <asm/neon.h>
|
#include <asm/neon.h>
|
||||||
|
|
||||||
#include "aegis.h"
|
#include "aegis.h"
|
||||||
|
#include "aegis-neon.h"
|
||||||
void crypto_aegis128_init_neon(void *state, const void *key, const void *iv);
|
|
||||||
void crypto_aegis128_update_neon(void *state, const void *msg);
|
|
||||||
void crypto_aegis128_encrypt_chunk_neon(void *state, void *dst, const void *src,
|
|
||||||
unsigned int size);
|
|
||||||
void crypto_aegis128_decrypt_chunk_neon(void *state, void *dst, const void *src,
|
|
||||||
unsigned int size);
|
|
||||||
int crypto_aegis128_final_neon(void *state, void *tag_xor,
|
|
||||||
unsigned int assoclen,
|
|
||||||
unsigned int cryptlen,
|
|
||||||
unsigned int authsize);
|
|
||||||
|
|
||||||
int aegis128_have_aes_insn __ro_after_init;
|
int aegis128_have_aes_insn __ro_after_init;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user