mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
AES-NI encrypt and decrypt
This commit is contained in:
parent
54e042b08d
commit
83131a361d
1 changed files with 2 additions and 2 deletions
4
aes.cpp
4
aes.cpp
|
@ -94,7 +94,7 @@ namespace crypto
|
||||||
"aesenclast 224(%%rdx), %%xmm0 \n"
|
"aesenclast 224(%%rdx), %%xmm0 \n"
|
||||||
"movups %%xmm0, (%%rdi) \n"
|
"movups %%xmm0, (%%rdi) \n"
|
||||||
:
|
:
|
||||||
: "S" (in), "D" (out), "r" ((uint64_t)m_KeySchedule)
|
: "r" ((uint64_t)m_KeySchedule), "S" (in), "D" (out)
|
||||||
: "%rdx"
|
: "%rdx"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ namespace crypto
|
||||||
"aesdeclast (%%rdx), %%xmm0 \n"
|
"aesdeclast (%%rdx), %%xmm0 \n"
|
||||||
"movups %%xmm0, (%%rdi) \n"
|
"movups %%xmm0, (%%rdi) \n"
|
||||||
:
|
:
|
||||||
: "S" (in), "D" (out), "r" ((uint64_t)m_KeySchedule)
|
: "r" ((uint64_t)m_KeySchedule), "S" (in), "D" (out)
|
||||||
: "%rdx"
|
: "%rdx"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue