Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/BLAKE2/BLAKE2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-11-10 00:30:52 +0300
committerPádraig Brady <P@draigBrady.com>2016-11-10 00:34:46 +0300
commit2407e7a40a2650872c5a2100498960662ea22464 (patch)
tree83db45e70cb9d734f2396bc0e77149520fb03ae2
parenta90684ab3fe788b2ca45076cf9b38335de289f58 (diff)
maint: strip various trailing whitespace
This falls afoul of various commit git commit hooks, so strip trailing whitespace at EOL and EOF.
-rw-r--r--README.md4
-rw-r--r--b2sum/b2sum.c1
-rw-r--r--bench/bench.c6
-rw-r--r--bench/do.gplot12
-rw-r--r--bench/md5.c6
-rw-r--r--csharp/Blake2Sharp.CompressionCodeGen/Program.cs2
-rw-r--r--csharp/Blake2Sharp.CompressionCodeGen/Properties/AssemblyInfo.cs10
-rw-r--r--csharp/Blake2Sharp.Tests/Properties/AssemblyInfo.cs10
-rw-r--r--csharp/Blake2Sharp/Blake2BCore-Inline.cs16
-rw-r--r--csharp/Blake2Sharp/Blake2BCore.cs2
-rw-r--r--csharp/Blake2Sharp/Properties/AssemblyInfo.cs10
-rw-r--r--ref/blake2-impl.h7
-rw-r--r--ref/blake2.h1
-rw-r--r--ref/blake2b-ref.c7
-rw-r--r--ref/blake2s-ref.c8
-rw-r--r--ref/blake2sp-ref.c6
-rw-r--r--ref/blake2xb-ref.c1
-rw-r--r--ref/blake2xs-ref.c1
-rw-r--r--sse/blake2-config.h1
-rw-r--r--sse/blake2-impl.h7
-rw-r--r--sse/blake2.h5
-rw-r--r--sse/blake2b-load-sse2.h7
-rw-r--r--sse/blake2b-load-sse41.h7
-rw-r--r--sse/blake2b-round.h11
-rw-r--r--sse/blake2b.c1
-rw-r--r--sse/blake2bp.c1
-rw-r--r--sse/blake2s-load-sse2.h6
-rw-r--r--sse/blake2s-load-sse41.h7
-rw-r--r--sse/blake2s-load-xop.h9
-rw-r--r--sse/blake2s-round.h9
-rw-r--r--sse/blake2s.c8
-rw-r--r--sse/blake2sp.c4
-rw-r--r--sse/blake2xb.c1
-rw-r--r--sse/blake2xs.c13
34 files changed, 87 insertions, 120 deletions
diff --git a/README.md b/README.md
index 82b34e4..2190bca 100644
--- a/README.md
+++ b/README.md
@@ -3,13 +3,13 @@
This is the reference source code package of BLAKE2, which includes
* `ref/`: C implementations of BLAKE2b, BLAKE2bp, BLAKE2s, BLAKE2sp,
- aimed at portability and simplicity.
+ aimed at portability and simplicity.
* `sse/`: C implementations of BLAKE2b, BLAKE2bp, BLAKE2s, BLAKE2sp,
optimized for speed on CPUs supporting SSE2, SSSE3, SSE4.1, AVX, or
XOP.
-* `csharp/`: C# implementation of BLAKE2b.
+* `csharp/`: C# implementation of BLAKE2b.
* `b2sum/`: Command line utility to hash files, based on the `sse/`
implementations.
diff --git a/b2sum/b2sum.c b/b2sum/b2sum.c
index e354364..7ce2712 100644
--- a/b2sum/b2sum.c
+++ b/b2sum/b2sum.c
@@ -385,4 +385,3 @@ int main( int argc, char **argv )
return 0;
}
-
diff --git a/bench/bench.c b/bench/bench.c
index 8488728..eeb059f 100644
--- a/bench/bench.c
+++ b/bench/bench.c
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - benchmark tool
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
diff --git a/bench/do.gplot b/bench/do.gplot
index 6a6832a..bb7575e 100644
--- a/bench/do.gplot
+++ b/bench/do.gplot
@@ -1,4 +1,4 @@
-maxx = 256
+maxx = 256
set xrange [1:maxx]
set xlabel "bytes "
set ylabel "cycles"
@@ -6,14 +6,14 @@ set xtics 0,32,maxx
set grid
set key left
-#set terminal png
-#set output "plotcycles.png"
+#set terminal png
+#set output "plotcycles.png"
set terminal pdfcairo
-set output "plotcycles.pdf"
+set output "plotcycles.pdf"
-plot "blake2b.data" using 1:2 with lines title "BLAKE2b"
+plot "blake2b.data" using 1:2 with lines title "BLAKE2b"
replot "blake2s.data" using 1:2 with lines title "BLAKE2s"
replot "md5.data" using 1:2 with lines title "MD5"
-set output "plotcycles.pdf"
+set output "plotcycles.pdf"
replot \ No newline at end of file
diff --git a/bench/md5.c b/bench/md5.c
index 3931ab6..14b28d7 100644
--- a/bench/md5.c
+++ b/bench/md5.c
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - benchmark tool
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
diff --git a/csharp/Blake2Sharp.CompressionCodeGen/Program.cs b/csharp/Blake2Sharp.CompressionCodeGen/Program.cs
index 27a944c..832abb8 100644
--- a/csharp/Blake2Sharp.CompressionCodeGen/Program.cs
+++ b/csharp/Blake2Sharp.CompressionCodeGen/Program.cs
@@ -66,7 +66,7 @@ namespace Blake2Sharp.CompressionCodeGen
d ^= a;
d = " + RotateRight("d", 16) + @";
c = c + d;
- b ^= c;
+ b ^= c;
b = " + RotateRight("b", 63) + @";";
s = s.Replace("a", "v" + a);
s = s.Replace("b", "v" + b);
diff --git a/csharp/Blake2Sharp.CompressionCodeGen/Properties/AssemblyInfo.cs b/csharp/Blake2Sharp.CompressionCodeGen/Properties/AssemblyInfo.cs
index d33c6c8..8123645 100644
--- a/csharp/Blake2Sharp.CompressionCodeGen/Properties/AssemblyInfo.cs
+++ b/csharp/Blake2Sharp.CompressionCodeGen/Properties/AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Blake2Sharp.CompressionCodeGen")]
@@ -25,8 +25,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -36,11 +36,11 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
-// Minor Version
+// Minor Version
// Build Number
// Revision
//
-// You can specify all the values or you can default the Build and Revision Numbers
+// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
diff --git a/csharp/Blake2Sharp.Tests/Properties/AssemblyInfo.cs b/csharp/Blake2Sharp.Tests/Properties/AssemblyInfo.cs
index e1b4060..4162ac5 100644
--- a/csharp/Blake2Sharp.Tests/Properties/AssemblyInfo.cs
+++ b/csharp/Blake2Sharp.Tests/Properties/AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Blake2Sharp.Tests")]
@@ -25,8 +25,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -36,11 +36,11 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
-// Minor Version
+// Minor Version
// Build Number
// Revision
//
-// You can specify all the values or you can default the Build and Revision Numbers
+// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
diff --git a/csharp/Blake2Sharp/Blake2BCore-Inline.cs b/csharp/Blake2Sharp/Blake2BCore-Inline.cs
index 007f3e2..e09b2fc 100644
--- a/csharp/Blake2Sharp/Blake2BCore-Inline.cs
+++ b/csharp/Blake2Sharp/Blake2BCore-Inline.cs
@@ -50,7 +50,7 @@ namespace Blake2Sharp
for (int r = 0; r < NumberOfRounds; ++r)
{
- // G(r,0,v0,v4,v8,v12)
+ // G(r,0,v0,v4,v8,v12)
v0 = v0 + v4 + m[Sigma[16 * r + 2 * 0 + 0]];
v12 ^= v0;
v12 = ((v12 >> 32) | (v12 << (64 - 32)));
@@ -64,7 +64,7 @@ namespace Blake2Sharp
v4 ^= v8;
v4 = ((v4 >> 63) | (v4 << (64 - 63)));
- // G(r,1,v1,v5,v9,v13)
+ // G(r,1,v1,v5,v9,v13)
v1 = v1 + v5 + m[Sigma[16 * r + 2 * 1 + 0]];
v13 ^= v1;
v13 = ((v13 >> 32) | (v13 << (64 - 32)));
@@ -78,7 +78,7 @@ namespace Blake2Sharp
v5 ^= v9;
v5 = ((v5 >> 63) | (v5 << (64 - 63)));
- // G(r,2,v2,v6,v10,v14)
+ // G(r,2,v2,v6,v10,v14)
v2 = v2 + v6 + m[Sigma[16 * r + 2 * 2 + 0]];
v14 ^= v2;
v14 = ((v14 >> 32) | (v14 << (64 - 32)));
@@ -92,7 +92,7 @@ namespace Blake2Sharp
v6 ^= v10;
v6 = ((v6 >> 63) | (v6 << (64 - 63)));
- // G(r,3,v3,v7,v11,v15)
+ // G(r,3,v3,v7,v11,v15)
v3 = v3 + v7 + m[Sigma[16 * r + 2 * 3 + 0]];
v15 ^= v3;
v15 = ((v15 >> 32) | (v15 << (64 - 32)));
@@ -106,7 +106,7 @@ namespace Blake2Sharp
v7 ^= v11;
v7 = ((v7 >> 63) | (v7 << (64 - 63)));
- // G(r,4,v0,v5,v10,v15)
+ // G(r,4,v0,v5,v10,v15)
v0 = v0 + v5 + m[Sigma[16 * r + 2 * 4 + 0]];
v15 ^= v0;
v15 = ((v15 >> 32) | (v15 << (64 - 32)));
@@ -120,7 +120,7 @@ namespace Blake2Sharp
v5 ^= v10;
v5 = ((v5 >> 63) | (v5 << (64 - 63)));
- // G(r,5,v1,v6,v11,v12)
+ // G(r,5,v1,v6,v11,v12)
v1 = v1 + v6 + m[Sigma[16 * r + 2 * 5 + 0]];
v12 ^= v1;
v12 = ((v12 >> 32) | (v12 << (64 - 32)));
@@ -134,7 +134,7 @@ namespace Blake2Sharp
v6 ^= v11;
v6 = ((v6 >> 63) | (v6 << (64 - 63)));
- // G(r,6,v2,v7,v8,v13)
+ // G(r,6,v2,v7,v8,v13)
v2 = v2 + v7 + m[Sigma[16 * r + 2 * 6 + 0]];
v13 ^= v2;
v13 = ((v13 >> 32) | (v13 << (64 - 32)));
@@ -148,7 +148,7 @@ namespace Blake2Sharp
v7 ^= v8;
v7 = ((v7 >> 63) | (v7 << (64 - 63)));
- // G(r,7,v3,v4,v9,v14)
+ // G(r,7,v3,v4,v9,v14)
v3 = v3 + v4 + m[Sigma[16 * r + 2 * 7 + 0]];
v14 ^= v3;
v14 = ((v14 >> 32) | (v14 << (64 - 32)));
diff --git a/csharp/Blake2Sharp/Blake2BCore.cs b/csharp/Blake2Sharp/Blake2BCore.cs
index 1d63268..3b250da 100644
--- a/csharp/Blake2Sharp/Blake2BCore.cs
+++ b/csharp/Blake2Sharp/Blake2BCore.cs
@@ -8,7 +8,7 @@
// You should have received a copy of the CC0 Public Domain Dedication along with
// this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
-//
+//
/*
Based on BlakeSharp
by Dominik Reichl <dominik.reichl@t-online.de>
diff --git a/csharp/Blake2Sharp/Properties/AssemblyInfo.cs b/csharp/Blake2Sharp/Properties/AssemblyInfo.cs
index 1d43812..e01fb49 100644
--- a/csharp/Blake2Sharp/Properties/AssemblyInfo.cs
+++ b/csharp/Blake2Sharp/Properties/AssemblyInfo.cs
@@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Blake2Sharp")]
@@ -14,8 +14,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,11 +25,11 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
-// Minor Version
+// Minor Version
// Build Number
// Revision
//
-// You can specify all the values or you can default the Build and Revision Numbers
+// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
diff --git a/ref/blake2-impl.h b/ref/blake2-impl.h
index ad9089e..5dff7fc 100644
--- a/ref/blake2-impl.h
+++ b/ref/blake2-impl.h
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - reference C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -158,4 +158,3 @@ static BLAKE2_INLINE void secure_zero_memory(void *v, size_t n)
}
#endif
-
diff --git a/ref/blake2.h b/ref/blake2.h
index 6420c53..ad62f26 100644
--- a/ref/blake2.h
+++ b/ref/blake2.h
@@ -193,4 +193,3 @@ extern "C" {
#endif
#endif
-
diff --git a/ref/blake2b-ref.c b/ref/blake2b-ref.c
index 0d36fb0..cd38b1b 100644
--- a/ref/blake2b-ref.c
+++ b/ref/blake2b-ref.c
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - reference C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -377,4 +377,3 @@ fail:
return -1;
}
#endif
-
diff --git a/ref/blake2s-ref.c b/ref/blake2s-ref.c
index cca1762..fbf4265 100644
--- a/ref/blake2s-ref.c
+++ b/ref/blake2s-ref.c
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - reference C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -365,5 +365,3 @@ fail:
return -1;
}
#endif
-
-
diff --git a/ref/blake2sp-ref.c b/ref/blake2sp-ref.c
index 29f5c1d..b0e9bae 100644
--- a/ref/blake2sp-ref.c
+++ b/ref/blake2sp-ref.c
@@ -357,9 +357,3 @@ fail:
return -1;
}
#endif
-
-
-
-
-
-
diff --git a/ref/blake2xb-ref.c b/ref/blake2xb-ref.c
index 4a9f1a0..1811ab2 100644
--- a/ref/blake2xb-ref.c
+++ b/ref/blake2xb-ref.c
@@ -238,4 +238,3 @@ fail:
return -1;
}
#endif
-
diff --git a/ref/blake2xs-ref.c b/ref/blake2xs-ref.c
index c789c36..de420fa 100644
--- a/ref/blake2xs-ref.c
+++ b/ref/blake2xs-ref.c
@@ -236,4 +236,3 @@ fail:
return -1;
}
#endif
-
diff --git a/sse/blake2-config.h b/sse/blake2-config.h
index e3b69e8..a524aa9 100644
--- a/sse/blake2-config.h
+++ b/sse/blake2-config.h
@@ -70,4 +70,3 @@
#endif
#endif
-
diff --git a/sse/blake2-impl.h b/sse/blake2-impl.h
index ad9089e..5dff7fc 100644
--- a/sse/blake2-impl.h
+++ b/sse/blake2-impl.h
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - reference C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -158,4 +158,3 @@ static BLAKE2_INLINE void secure_zero_memory(void *v, size_t n)
}
#endif
-
diff --git a/sse/blake2.h b/sse/blake2.h
index ac6e7de..ad62f26 100644
--- a/sse/blake2.h
+++ b/sse/blake2.h
@@ -123,13 +123,13 @@ extern "C" {
typedef struct blake2b_param__ blake2b_param;
- typedef struct blake2xs_state__
+ typedef struct blake2xs_state__
{
blake2s_state S[1];
blake2s_param P[1];
} blake2xs_state;
- typedef struct blake2xb_state__
+ typedef struct blake2xb_state__
{
blake2b_state S[1];
blake2b_param P[1];
@@ -193,4 +193,3 @@ extern "C" {
#endif
#endif
-
diff --git a/sse/blake2b-load-sse2.h b/sse/blake2b-load-sse2.h
index 1ca4918..23a8d40 100644
--- a/sse/blake2b-load-sse2.h
+++ b/sse/blake2b-load-sse2.h
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - optimized C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -66,4 +66,3 @@
#endif
-
diff --git a/sse/blake2b-load-sse41.h b/sse/blake2b-load-sse41.h
index 4cd81dc..0eca865 100644
--- a/sse/blake2b-load-sse41.h
+++ b/sse/blake2b-load-sse41.h
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - optimized C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -400,4 +400,3 @@ b1 = _mm_unpackhi_epi64(m3, m1); \
#endif
-
diff --git a/sse/blake2b-round.h b/sse/blake2b-round.h
index 5a01dc3..6537fff 100644
--- a/sse/blake2b-round.h
+++ b/sse/blake2b-round.h
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - optimized C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -60,7 +60,7 @@
\
row2l = _mm_roti_epi64(row2l, -24); \
row2h = _mm_roti_epi64(row2h, -24); \
-
+
#define G2(row1l,row2l,row3l,row4l,row1h,row2h,row3h,row4h,b0,b1) \
row1l = _mm_add_epi64(_mm_add_epi64(row1l, b0), row2l); \
row1h = _mm_add_epi64(_mm_add_epi64(row1h, b1), row2h); \
@@ -79,7 +79,7 @@
\
row2l = _mm_roti_epi64(row2l, -63); \
row2h = _mm_roti_epi64(row2h, -63); \
-
+
#if defined(HAVE_SSSE3)
#define DIAGONALIZE(row1l,row2l,row3l,row4l,row1h,row2h,row3h,row4h) \
t0 = _mm_alignr_epi8(row2h, row2l, 8); \
@@ -155,4 +155,3 @@
UNDIAGONALIZE(row1l,row2l,row3l,row4l,row1h,row2h,row3h,row4h);
#endif
-
diff --git a/sse/blake2b.c b/sse/blake2b.c
index faa9679..c8c1c5f 100644
--- a/sse/blake2b.c
+++ b/sse/blake2b.c
@@ -371,4 +371,3 @@ fail:
return -1;
}
#endif
-
diff --git a/sse/blake2bp.c b/sse/blake2bp.c
index 1996cc4..3eb95d0 100644
--- a/sse/blake2bp.c
+++ b/sse/blake2bp.c
@@ -359,4 +359,3 @@ fail:
return -1;
}
#endif
-
diff --git a/sse/blake2s-load-sse2.h b/sse/blake2s-load-sse2.h
index b355c47..d2e9a09 100644
--- a/sse/blake2s-load-sse2.h
+++ b/sse/blake2s-load-sse2.h
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - optimized C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
diff --git a/sse/blake2s-load-sse41.h b/sse/blake2s-load-sse41.h
index c874dce..c316fb5 100644
--- a/sse/blake2s-load-sse41.h
+++ b/sse/blake2s-load-sse41.h
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - optimized C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -227,4 +227,3 @@ t2 = _mm_blend_epi16(t0,t1,0x0F); \
buf = _mm_shuffle_epi32(t2,_MM_SHUFFLE(0,1,2,3));
#endif
-
diff --git a/sse/blake2s-load-xop.h b/sse/blake2s-load-xop.h
index 217ce61..a97ddcc 100644
--- a/sse/blake2s-load-xop.h
+++ b/sse/blake2s-load-xop.h
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - optimized C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -169,7 +169,7 @@ buf = _mm_perm_epi8(t1, m3, _mm_set_epi32(TOB(3),TOB(2),TOB(1),TOB(7)) );
#define LOAD_MSG_8_3(buf) \
t0 = _mm_perm_epi8(m0, m2, _mm_set_epi32(TOB(6),TOB(1),TOB(0),TOB(0)) ); \
buf = _mm_perm_epi8(t0, m3, _mm_set_epi32(TOB(3),TOB(2),TOB(5),TOB(4)) ); \
-
+
#define LOAD_MSG_8_4(buf) \
buf = _mm_perm_epi8(m0, m1, _mm_set_epi32(TOB(5),TOB(4),TOB(7),TOB(2)) );
@@ -189,4 +189,3 @@ t1 = _mm_perm_epi8(m0, m2, _mm_set_epi32(TOB(0),TOB(0),TOB(0),TOB(7)) ); \
buf = _mm_perm_epi8(t1, m3, _mm_set_epi32(TOB(3),TOB(4),TOB(6),TOB(0)) );
#endif
-
diff --git a/sse/blake2s-round.h b/sse/blake2s-round.h
index 463617f..44a5574 100644
--- a/sse/blake2s-round.h
+++ b/sse/blake2s-round.h
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - optimized C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -84,6 +84,5 @@
LOAD_MSG_ ##r ##_4(buf4); \
G2(row1,row2,row3,row4,buf4); \
UNDIAGONALIZE(row1,row2,row3,row4); \
-
-#endif
+#endif
diff --git a/sse/blake2s.c b/sse/blake2s.c
index 53d8cf9..569c210 100644
--- a/sse/blake2s.c
+++ b/sse/blake2s.c
@@ -1,14 +1,14 @@
/*
BLAKE2 reference source code package - optimized C implementations
-
+
Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -361,5 +361,3 @@ fail:
return -1;
}
#endif
-
-
diff --git a/sse/blake2sp.c b/sse/blake2sp.c
index 43ef004..ed0e1ad 100644
--- a/sse/blake2sp.c
+++ b/sse/blake2sp.c
@@ -356,7 +356,3 @@ fail:
return -1;
}
#endif
-
-
-
-
diff --git a/sse/blake2xb.c b/sse/blake2xb.c
index 4a9f1a0..1811ab2 100644
--- a/sse/blake2xb.c
+++ b/sse/blake2xb.c
@@ -238,4 +238,3 @@ fail:
return -1;
}
#endif
-
diff --git a/sse/blake2xs.c b/sse/blake2xs.c
index f33cf88..de420fa 100644
--- a/sse/blake2xs.c
+++ b/sse/blake2xs.c
@@ -1,17 +1,17 @@
/*
BLAKE2 reference source code package - reference C implementations
-
- Copyright 2016, JP Aumasson <jeanphilippe.aumasson@gmail.com>.
- Copyright 2016, Samuel Neves <sneves@dei.uc.pt>.
-
+
+ Copyright 2016, JP Aumasson <jeanphilippe.aumasson@gmail.com>.
+ Copyright 2016, Samuel Neves <sneves@dei.uc.pt>.
+
You may use this under the terms of the CC0, the OpenSSL Licence, or
the Apache Public License 2.0, at your option. The terms of these
licenses can be found at:
-
+
- CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- OpenSSL license : https://www.openssl.org/source/license.html
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
+
More information about the BLAKE2 hash function can be found at
https://blake2.net.
*/
@@ -236,4 +236,3 @@ fail:
return -1;
}
#endif
-