mirror of
https://github.com/wownero/RandomWOW.git
synced 2026-11-26 10:04:36 +01:00
Scratchpad size increased to 1 MiB
New AES-based scratchpad hashing function
This commit is contained in:
@@ -26,3 +26,13 @@ __m128i soft_aeskeygenassist(__m128i key, uint8_t rcon);
|
||||
__m128i soft_aesenc(__m128i in, __m128i key);
|
||||
|
||||
__m128i soft_aesdec(__m128i in, __m128i key);
|
||||
|
||||
template<bool soft>
|
||||
inline __m128i aesenc(__m128i in, __m128i key) {
|
||||
return soft ? soft_aesenc(in, key) : _mm_aesenc_si128(in, key);
|
||||
}
|
||||
|
||||
template<bool soft>
|
||||
inline __m128i aesdec(__m128i in, __m128i key) {
|
||||
return soft ? soft_aesdec(in, key) : _mm_aesdec_si128(in, key);
|
||||
}
|
||||
Reference in New Issue
Block a user