mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 20:27:49 +02:00
i hate operator overloading 2
Signed-off-by: contextswap <ctxswp@proton.me>
This commit is contained in:
parent
f2bbc43777
commit
83c253ff29
1 changed files with 5 additions and 5 deletions
|
@ -587,11 +587,11 @@ namespace crypto
|
||||||
#ifdef __AES__
|
#ifdef __AES__
|
||||||
void ECBCryptoAESNI::ExpandKey (const AESKey& key)
|
void ECBCryptoAESNI::ExpandKey (const AESKey& key)
|
||||||
{
|
{
|
||||||
uint8_t* sched = GetKeySchedule();
|
uint8_t *sched = GetKeySchedule();
|
||||||
__m128 xmm_1 = _mm_loadu_ps((float const*)&key);
|
auto key_ = (uint8_t const*)key;
|
||||||
__m128 xmm_3 = _mm_loadu_ps((float const*)(
|
__m128 xmm_1 = _mm_loadu_ps((float const*)key_);
|
||||||
(uint8_t*)&key + 0x10));
|
__m128 xmm_3 = _mm_loadu_ps((float const*)(key_ + 0x10));
|
||||||
_mm_store_ps((float*)(sched), xmm_1);
|
_mm_store_ps((float*)sched, xmm_1);
|
||||||
_mm_store_ps((float*)(sched + 0x10), xmm_3);
|
_mm_store_ps((float*)(sched + 0x10), xmm_3);
|
||||||
__m128i xmm_2 = _mm_aeskeygenassist_si128((__m128i)xmm_3, 1);
|
__m128i xmm_2 = _mm_aeskeygenassist_si128((__m128i)xmm_3, 1);
|
||||||
__m128i xmm_4;
|
__m128i xmm_4;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue