* aes-internal.h: Delete name mangling of internal symbols. Update
all internal references to use _nettle prefix.
* camellia-internal.h: Likewise.
+ * ctr-internal.h: Likewise.
* dsa-internal.h: Likewise.
2020-11-26 Niels Möller <nisse@lysator.liu.se>
#include "nettle-types.h"
-/* Name mangling */
-#define _ctr_crypt16 _nettle_ctr_crypt16
-
/* Size limit for temporary stack buffers. */
#define CTR_BUFFER_LIMIT 512
nettle_fill16_func(uint8_t *ctr, size_t n, union nettle_block16 *buffer);
void
-_ctr_crypt16(const void *ctx, nettle_cipher_func *f,
- nettle_fill16_func *fill, uint8_t *ctr,
- size_t length, uint8_t *dst,
- const uint8_t *src);
+_nettle_ctr_crypt16(const void *ctx, nettle_cipher_func *f,
+ nettle_fill16_func *fill, uint8_t *ctr,
+ size_t length, uint8_t *dst,
+ const uint8_t *src);
#endif /* NETTLE_CTR_INTERNAL_H_INCLUDED */
#if USE_CTR_CRYPT16
if (block_size == 16)
{
- _ctr_crypt16(ctx, f, ctr_fill16, ctr, length, dst, src);
+ _nettle_ctr_crypt16(ctx, f, ctr_fill16, ctr, length, dst, src);
return;
}
#endif
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
void
-_ctr_crypt16(const void *ctx, nettle_cipher_func *f,
- nettle_fill16_func *fill, uint8_t *ctr,
- size_t length, uint8_t *dst,
- const uint8_t *src)
+_nettle_ctr_crypt16(const void *ctx, nettle_cipher_func *f,
+ nettle_fill16_func *fill, uint8_t *ctr,
+ size_t length, uint8_t *dst,
+ const uint8_t *src)
{
if (dst != src && !((uintptr_t) dst % sizeof(uint64_t)))
{
{
assert(ctx->data_size % GCM_BLOCK_SIZE == 0);
- _ctr_crypt16(cipher, f, gcm_fill, ctx->ctr.b, length, dst, src);
+ _nettle_ctr_crypt16(cipher, f, gcm_fill, ctx->ctr.b, length, dst, src);
_nettle_gcm_hash(key, &ctx->x, length, dst);
ctx->data_size += length;
assert(ctx->data_size % GCM_BLOCK_SIZE == 0);
_nettle_gcm_hash(key, &ctx->x, length, src);
- _ctr_crypt16(cipher, f, gcm_fill, ctx->ctr.b, length, dst, src);
+ _nettle_ctr_crypt16(cipher, f, gcm_fill, ctx->ctr.b, length, dst, src);
ctx->data_size += length;
}