mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17: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
|
@ -588,10 +588,10 @@ namespace crypto
|
|||
void ECBCryptoAESNI::ExpandKey (const AESKey& key)
|
||||
{
|
||||
uint8_t *sched = GetKeySchedule();
|
||||
__m128 xmm_1 = _mm_loadu_ps((float const*)&key);
|
||||
__m128 xmm_3 = _mm_loadu_ps((float const*)(
|
||||
(uint8_t*)&key + 0x10));
|
||||
_mm_store_ps((float*)(sched), xmm_1);
|
||||
auto key_ = (uint8_t const*)key;
|
||||
__m128 xmm_1 = _mm_loadu_ps((float const*)key_);
|
||||
__m128 xmm_3 = _mm_loadu_ps((float const*)(key_ + 0x10));
|
||||
_mm_store_ps((float*)sched, xmm_1);
|
||||
_mm_store_ps((float*)(sched + 0x10), xmm_3);
|
||||
__m128i xmm_2 = _mm_aeskeygenassist_si128((__m128i)xmm_3, 1);
|
||||
__m128i xmm_4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue