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
path: root/sse
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 /sse
parenta90684ab3fe788b2ca45076cf9b38335de289f58 (diff)
maint: strip various trailing whitespace
This falls afoul of various commit git commit hooks, so strip trailing whitespace at EOL and EOF.
Diffstat (limited to 'sse')
-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
16 files changed, 39 insertions, 58 deletions
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
-