Skip to content

Commit 654e940

Browse files
committed
📝 Some updates but GCM is not finish
1 parent 3fbe296 commit 654e940

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/gcm/aes_gcm.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

@@ -81,6 +81,13 @@
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
//

src/gf/gf128_mul.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
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
}

0 commit comments

Comments
 (0)