mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-26 00:01:12 +00:00
bf9710fd5a
This only affects build_android, if nacl-gcc-prep is run then build/`uname -s` will be created.
48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
#ifndef INT128_H
|
|
#define INT128_H
|
|
|
|
#include "common.h"
|
|
|
|
typedef struct{
|
|
unsigned long long a;
|
|
unsigned long long b;
|
|
} int128;
|
|
|
|
#define xor2 crypto_stream_aes128ctr_portable_xor2
|
|
void xor2(int128 *r, const int128 *x);
|
|
|
|
#define and2 crypto_stream_aes128ctr_portable_and2
|
|
void and2(int128 *r, const int128 *x);
|
|
|
|
#define or2 crypto_stream_aes128ctr_portable_or2
|
|
void or2(int128 *r, const int128 *x);
|
|
|
|
#define copy2 crypto_stream_aes128ctr_portable_copy2
|
|
void copy2(int128 *r, const int128 *x);
|
|
|
|
#define shufb crypto_stream_aes128ctr_portable_shufb
|
|
void shufb(int128 *r, const unsigned char *l);
|
|
|
|
#define shufd crypto_stream_aes128ctr_portable_shufd
|
|
void shufd(int128 *r, const int128 *x, const unsigned int c);
|
|
|
|
#define rshift32_littleendian crypto_stream_aes128ctr_portable_rshift32_littleendian
|
|
void rshift32_littleendian(int128 *r, const unsigned int n);
|
|
|
|
#define rshift64_littleendian crypto_stream_aes128ctr_portable_rshift64_littleendian
|
|
void rshift64_littleendian(int128 *r, const unsigned int n);
|
|
|
|
#define lshift64_littleendian crypto_stream_aes128ctr_portable_lshift64_littleendian
|
|
void lshift64_littleendian(int128 *r, const unsigned int n);
|
|
|
|
#define toggle crypto_stream_aes128ctr_portable_toggle
|
|
void toggle(int128 *r);
|
|
|
|
#define xor_rcon crypto_stream_aes128ctr_portable_xor_rcon
|
|
void xor_rcon(int128 *r);
|
|
|
|
#define add_uint32_big crypto_stream_aes128ctr_portable_add_uint32_big
|
|
void add_uint32_big(int128 *r, uint32 x);
|
|
|
|
#endif
|