mirror of
https://github.com/BLAKE2/BLAKE2
synced 2024-11-22 02:31:57 +01:00
maint: strip various trailing whitespace
This falls afoul of various commit git commit hooks, so strip trailing whitespace at EOL and EOF.
This commit is contained in:
parent
a90684ab3f
commit
2407e7a40a
@ -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.
|
||||
|
@ -385,4 +385,3 @@ int main( int argc, char **argv )
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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
|
@ -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.
|
||||
*/
|
||||
|
@ -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);
|
||||
|
@ -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")]
|
||||
|
@ -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")]
|
||||
|
@ -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)));
|
||||
|
@ -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>
|
||||
|
@ -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")]
|
||||
|
@ -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
|
||||
|
||||
|
@ -193,4 +193,3 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -357,9 +357,3 @@ fail:
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -238,4 +238,3 @@ fail:
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -236,4 +236,3 @@ fail:
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -70,4 +70,3 @@
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -371,4 +371,3 @@ fail:
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -359,4 +359,3 @@ fail:
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -356,7 +356,3 @@ fail:
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -238,4 +238,3 @@ fail:
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user