diff options
author | Niels Möller <nisse@lysator.liu.se> | 2020-07-14 22:17:26 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2020-07-14 22:17:26 +0200 |
commit | 223ec90d732b48b62d0fb06366816b1d2b895772 (patch) | |
tree | 06eb1ba76c96fcd376dc07d723fb239733045c3e /chacha-internal.h | |
parent | fbbcc70101de98a0114f33a497958b6260300cbc (diff) | |
download | nettle-223ec90d732b48b62d0fb06366816b1d2b895772.tar.gz |
Rearrange chacha_crypt and chacha_crypt32, enabling fat builds to use chacha_3corechacha-3core-neon
Diffstat (limited to 'chacha-internal.h')
-rw-r--r-- | chacha-internal.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/chacha-internal.h b/chacha-internal.h index cc90b132..ef6a64a3 100644 --- a/chacha-internal.h +++ b/chacha-internal.h @@ -37,9 +37,15 @@ #define NETTLE_CHACHA_INTERNAL_H_INCLUDED #include "nettle-types.h" +#include "chacha.h" #define _chacha_core _nettle_chacha_core #define _chacha_3core _nettle_chacha_3core +#define _chacha_3core32 _nettle_chacha_3core32 +#define _chacha_crypt_1core _nettle_chacha_crypt_1core +#define _chacha_crypt_3core _nettle_chacha_crypt_3core +#define _chacha_crypt32_1core _nettle_chacha_crypt32_1core +#define _chacha_crypt32_3core _nettle_chacha_crypt32_3core void _chacha_core(uint32_t *dst, const uint32_t *src, unsigned rounds); @@ -48,4 +54,31 @@ _chacha_core(uint32_t *dst, const uint32_t *src, unsigned rounds); void _chacha_3core(uint32_t *dst, const uint32_t *src, unsigned rounds); +void +_chacha_3core32(uint32_t *dst, const uint32_t *src, unsigned rounds); + +void +_chacha_crypt_1core(struct chacha_ctx *ctx, + size_t length, + uint8_t *dst, + const uint8_t *src); + +void +_chacha_crypt_3core(struct chacha_ctx *ctx, + size_t length, + uint8_t *dst, + const uint8_t *src); + +void +_chacha_crypt32_1core(struct chacha_ctx *ctx, + size_t length, + uint8_t *dst, + const uint8_t *src); + +void +_chacha_crypt32_3core(struct chacha_ctx *ctx, + size_t length, + uint8_t *dst, + const uint8_t *src); + #endif /* NETTLE_CHACHA_INTERNAL_H_INCLUDED */ |