Remove commented out code and avoid inconsistent indentation

This commit is contained in:
Frank Denis 2016-09-30 08:30:05 +02:00
parent f257413772
commit 53ee1fe758
2 changed files with 49 additions and 65 deletions

View File

@ -9,7 +9,6 @@
int crypto_stream_aes128ctr_afternm(unsigned char *out, unsigned long long len, const unsigned char *nonce, const unsigned char *c)
{
int128 xmm0;
int128 xmm1;
int128 xmm2;
@ -18,7 +17,6 @@ int crypto_stream_aes128ctr_afternm(unsigned char *out, unsigned long long len,
int128 xmm5;
int128 xmm6;
int128 xmm7;
int128 xmm8;
int128 xmm9;
int128 xmm10;
@ -41,7 +39,7 @@ int crypto_stream_aes128ctr_afternm(unsigned char *out, unsigned long long len,
copy2(&nonce_stack, (const int128 *) (nonce + 0));
np = (unsigned char *)&nonce_stack;
enc_block:
enc_block:
xmm0 = *(int128 *) (np + 0);
copy2(&xmm1, &xmm0);
@ -106,7 +104,7 @@ int crypto_stream_aes128ctr_afternm(unsigned char *out, unsigned long long len,
goto enc_block;
partial:
partial:
lensav = len;
len >>= 4;
@ -125,7 +123,7 @@ int crypto_stream_aes128ctr_afternm(unsigned char *out, unsigned long long len,
*(int128 *)(blp + 96) = xmm10;
*(int128 *)(blp + 112) = xmm13;
bytes:
bytes:
if(lensav == 0) goto end;
@ -138,7 +136,7 @@ int crypto_stream_aes128ctr_afternm(unsigned char *out, unsigned long long len,
goto bytes;
full:
full:
tmp = LOAD32_BE(np + 12);
tmp += 8;
@ -153,7 +151,6 @@ int crypto_stream_aes128ctr_afternm(unsigned char *out, unsigned long long len,
*(int128 *) (out + 96) = xmm10;
*(int128 *) (out + 112) = xmm13;
end:
end:
return 0;
}

View File

@ -9,19 +9,6 @@
int crypto_stream_aes128ctr_beforenm(unsigned char *c, const unsigned char *k)
{
/*
int64 x0;
int64 x1;
int64 x2;
int64 x3;
int64 e;
int64 q0;
int64 q1;
int64 q2;
int64 q3;
*/
int128 xmm0;
int128 xmm1;
int128 xmm2;