mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Remove/ignore unused vars, use unsigned long long to iterate over sizes
This commit is contained in:
@@ -139,7 +139,6 @@ static void mainloop(unsigned int work[64],const unsigned char e[32])
|
||||
unsigned int s[32];
|
||||
unsigned int t[32];
|
||||
unsigned int u[32];
|
||||
unsigned int i;
|
||||
unsigned int j;
|
||||
unsigned int b;
|
||||
int pos;
|
||||
|
||||
@@ -19,6 +19,8 @@ ECRYPT_keysetup(ECRYPT_ctx* ctx, const u8* key, u32 keysize, u32 ivsize)
|
||||
unsigned int w[Nk*(Nr+1)], temp;
|
||||
int i, j;
|
||||
|
||||
(void) keysize;
|
||||
(void) ivsize;
|
||||
(void) sizeof(char[sizeof *ctx == crypto_stream_BEFORENMBYTES ? 1 : -1]);
|
||||
|
||||
for( i = 0; i < Nk; i++ ) {
|
||||
@@ -99,6 +101,7 @@ ECRYPT_process_bytes(int action, ECRYPT_ctx* ctx, const u8* input, u8* output,
|
||||
u8 keystream[16];
|
||||
u32 i;
|
||||
|
||||
(void) action;
|
||||
memset(keystream, 0, sizeof keystream);
|
||||
partial_precompute_tworounds(ctx);
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
*/
|
||||
|
||||
#define aes256_enc_block(x,output,ctx) {\
|
||||
u32 y0,y1,y2,y3;\
|
||||
u32 y0;\
|
||||
u32 z0,z1,z2,z3;\
|
||||
u32 a0,a1,a2,a3;\
|
||||
u32 b0,b1,b2,b3;\
|
||||
|
||||
@@ -21,7 +21,7 @@ int crypto_stream(
|
||||
{
|
||||
unsigned char in[16];
|
||||
unsigned char block[64];
|
||||
int i;
|
||||
unsigned long long i;
|
||||
unsigned int u;
|
||||
|
||||
if (!clen) return 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ int crypto_stream_xor(
|
||||
{
|
||||
unsigned char in[16];
|
||||
unsigned char block[64];
|
||||
int i;
|
||||
unsigned long long i;
|
||||
unsigned int u;
|
||||
|
||||
if (!mlen) return 0;
|
||||
|
||||
@@ -21,7 +21,7 @@ int crypto_stream(
|
||||
{
|
||||
unsigned char in[16];
|
||||
unsigned char block[64];
|
||||
int i;
|
||||
unsigned long long i;
|
||||
unsigned int u;
|
||||
|
||||
if (!clen) return 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ int crypto_stream_xor(
|
||||
{
|
||||
unsigned char in[16];
|
||||
unsigned char block[64];
|
||||
int i;
|
||||
unsigned long long i;
|
||||
unsigned int u;
|
||||
|
||||
if (!mlen) return 0;
|
||||
|
||||
@@ -21,7 +21,7 @@ int crypto_stream(
|
||||
{
|
||||
unsigned char in[16];
|
||||
unsigned char block[64];
|
||||
int i;
|
||||
unsigned long long i;
|
||||
unsigned int u;
|
||||
|
||||
if (!clen) return 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ int crypto_stream_xor(
|
||||
{
|
||||
unsigned char in[16];
|
||||
unsigned char block[64];
|
||||
int i;
|
||||
unsigned long long i;
|
||||
unsigned int u;
|
||||
|
||||
if (!mlen) return 0;
|
||||
|
||||
Reference in New Issue
Block a user