mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-28 22:21:15 -07:00
uint32 -> uint32_t
This commit is contained in:
parent
f6e0256d9b
commit
f257413772
@ -35,7 +35,7 @@ int crypto_stream_aes128ctr_afternm(unsigned char *out, unsigned long long len,
|
||||
unsigned char *np;
|
||||
unsigned char b;
|
||||
|
||||
uint32 tmp;
|
||||
uint32_t tmp;
|
||||
|
||||
/* Copy nonce on the stack */
|
||||
copy2(&nonce_stack, (const int128 *) (nonce + 0));
|
||||
|
@ -51,6 +51,6 @@ void toggle(int128 *r);
|
||||
void xor_rcon(int128 *r);
|
||||
|
||||
#define add_uint32_big crypto_stream_aes128ctr_portable_add_uint32_big
|
||||
void add_uint32_big(int128 *r, uint32 x);
|
||||
void add_uint32_big(int128 *r, uint32_t x);
|
||||
|
||||
#endif
|
||||
|
@ -67,7 +67,7 @@ void shufd(int128 *r, const int128 *x, const unsigned int c)
|
||||
void rshift32_littleendian(int128 *r, const unsigned int n)
|
||||
{
|
||||
unsigned char *rp = (unsigned char *)r;
|
||||
uint32 t;
|
||||
uint32_t t;
|
||||
t = LOAD32_LE(rp);
|
||||
t >>= n;
|
||||
STORE32_LE(rp, t);
|
||||
@ -115,16 +115,16 @@ void toggle(int128 *r)
|
||||
void xor_rcon(int128 *r)
|
||||
{
|
||||
unsigned char *rp = (unsigned char *)r;
|
||||
uint32 t;
|
||||
uint32_t t;
|
||||
t = LOAD32_LE(rp+12);
|
||||
t ^= 0xffffffff;
|
||||
STORE32_LE(rp+12, t);
|
||||
}
|
||||
|
||||
void add_uint32_big(int128 *r, uint32 x)
|
||||
void add_uint32_big(int128 *r, uint32_t x)
|
||||
{
|
||||
unsigned char *rp = (unsigned char *)r;
|
||||
uint32 t;
|
||||
uint32_t t;
|
||||
t = LOAD32_LE(rp+12);
|
||||
t += x;
|
||||
STORE32_LE(rp+12, t);
|
||||
|
@ -35,7 +35,7 @@ int crypto_stream_aes128ctr_xor_afternm(unsigned char *out, const unsigned char
|
||||
unsigned char *np;
|
||||
unsigned char b;
|
||||
|
||||
uint32 tmp;
|
||||
uint32_t tmp;
|
||||
|
||||
/* Copy nonce on the stack */
|
||||
copy2(&nonce_stack, (const int128 *) (nonce + 0));
|
||||
|
Loading…
Reference in New Issue
Block a user