File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 66/* By: stales <stales@student.42angouleme.fr> +#+ +:+ +#+ */
77/* +#+#+#+#+#+ +#+ */
88/* Created: 2024/10/20 12:46:51 by stales #+# #+# */
9- /* Updated: 2024/12/21 11:07:29 by stales ### ########.fr */
9+ /* Updated: 2025/01/04 14:59:17 by stales ### ########.fr */
1010/* */
1111/* ************************************************************************** */
1212
8181#include <immintrin.h>
8282#include <xmmintrin.h>
8383
84+ /**
85+ * @WARNING: the implementation of GCM is not finish please take care of this
86+ * and don't use it.
87+ *
88+ */
89+
90+
8491/////////////////////////////////////
8592//
8693//
Original file line number Diff line number Diff line change 66
77__m128i gf128_mul (__m128i a , __m128i b )
88{
9- //const __m256i poly = _mm256_set_epi64x(0, 0x1, 0, 0x87);
10-
11- __m128i low_low = _mm_clmulepi64_si128 (a , b , 0x0 );
12- __m128i high_high = _mm_clmulepi64_si128 (a , b , 0x11 );
13- __m128i mid_low = _mm_clmulepi64_si128 (a , b , 0x01 );
14- __m128i mid_high = _mm_clmulepi64_si128 (a , b , 0x10 );
15-
16- _mm_xor_si128 (low_low , mid_low );
17- _mm_xor_si128 (high_high , mid_high );
18-
9+ (void )a , (void )b ;
1910 return (_mm_setzero_si128 ());
2011}
You can’t perform that action at this time.
0 commit comments