Signed-off-by: Richard Hartmann <[email protected]>
---
 crypto/salsa20_generic.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/crypto/salsa20_generic.c b/crypto/salsa20_generic.c
index eac10c1..31f03bb 100644
--- a/crypto/salsa20_generic.c
+++ b/crypto/salsa20_generic.c
@@ -50,8 +50,7 @@ Public domain.
        (((u32)((p)[0])      ) | ((u32)((p)[1]) <<  8) | \
         ((u32)((p)[2]) << 16) | ((u32)((p)[3]) << 24)   )
 
-struct salsa20_ctx
-{
+struct salsa20_ctx {
        u32 input[16];
 };
 
@@ -98,7 +97,7 @@ static void salsa20_wordtobyte(u8 output[64], const u32 
input[16])
        for (i = 0; i < 16; ++i)
                x[i] += input[i];
        for (i = 0; i < 16; ++i)
-               U32TO8_LITTLE(output + 4 * i,x[i]);
+               U32TO8_LITTLE(output + 4 * i, x[i]);
 }
 
 static const char sigma[16] = "expand 32-byte k";
@@ -188,8 +187,7 @@ static int encrypt(struct blkcipher_desc *desc,
 
        salsa20_ivsetup(ctx, walk.iv);
 
-       if (likely(walk.nbytes == nbytes))
-       {
+       if (likely(walk.nbytes == nbytes)) {
                salsa20_encrypt_bytes(ctx, walk.dst.virt.addr,
                                      walk.src.virt.addr, nbytes);
                return blkcipher_walk_done(desc, &walk, 0);
@@ -248,5 +246,5 @@ module_init(salsa20_generic_mod_init);
 module_exit(salsa20_generic_mod_fini);
 
 MODULE_LICENSE("GPL");
-MODULE_DESCRIPTION ("Salsa20 stream cipher algorithm");
+MODULE_DESCRIPTION("Salsa20 stream cipher algorithm");
 MODULE_ALIAS("salsa20");
-- 
1.6.6.1

--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to