This commit is contained in:
Jay D Dee
2023-10-06 22:18:09 -04:00
parent bc5a5c6df8
commit 31c4dedf59
144 changed files with 5931 additions and 3746 deletions

View File

@@ -1,10 +1,11 @@
#include <stdint.h>
#include <x86intrin.h>
#include "wolf-aes.h"
#include "miner.h"
#if defined(__AES__)
#include <x86intrin.h>
#include "wolf-aes.h"
static inline void ExpandAESKey256_sub1(__m128i *tmp1, __m128i *tmp2)
{
__m128i tmp4;

View File

@@ -1,4 +1,5 @@
#include <memory.h>
#include <mm_malloc.h>
#include <stdlib.h>
#include "hodl-gate.h"

View File

@@ -1,7 +1,7 @@
#include <string.h>
#include <openssl/evp.h>
#include <openssl/sha.h>
#include <x86intrin.h>
#include "simd-utils.h"
#include "sha512-avx.h"
#include "wolf-aes.h"
#include "hodl-gate.h"

View File

@@ -2,7 +2,7 @@
#define __HODL_H
#include <stdint.h>
#include <x86intrin.h>
#include "simd-utils.h"
#include "miner.h"
#define AES_ITERATIONS 15
@@ -16,7 +16,7 @@
typedef union _CacheEntry
{
uint32_t dwords[GARBAGE_SLICE_SIZE >> 2] __attribute__((aligned(16)));
__m128i dqwords[GARBAGE_SLICE_SIZE >> 4] __attribute__((aligned(16)));
v128_t dqwords[GARBAGE_SLICE_SIZE >> 4] __attribute__((aligned(16)));
} CacheEntry;
int scanhash_hodl_wolf( struct work* work, uint32_t max_nonce,

View File

@@ -2,7 +2,7 @@
#define _SHA512_H
#include <stdint.h>
#include "emmintrin.h"
#include "simd-utils.h"
//SHA-512 block size
#define SHA512_BLOCK_SIZE 128
@@ -24,8 +24,8 @@ typedef struct
__m256i w[80];
#elif defined(__SSE4_2__)
//#elif defined(__AVX__)
__m128i h[8];
__m128i w[80];
v128_t h[8];
v128_t w[80];
#else
int dummy;
#endif

View File

@@ -2,9 +2,9 @@
#define __WOLF_AES_H
#include <stdint.h>
#include <x86intrin.h>
#include "simd-utils.h"
void ExpandAESKey256(__m128i *keys, const __m128i *KeyBuf);
void ExpandAESKey256(v128_t *keys, const v128_t *KeyBuf);
#if defined(__SSE4_2__)
//#ifdef __AVX__
@@ -12,13 +12,13 @@ void ExpandAESKey256(__m128i *keys, const __m128i *KeyBuf);
#define AES_PARALLEL_N 8
#define BLOCK_COUNT 256
void AES256CBC( __m128i** data, const __m128i** next, __m128i ExpandedKey[][16],
__m128i* IV );
void AES256CBC( v128_t** data, const v128_t** next, v128_t ExpandedKey[][16],
v128_t* IV );
#else
void AES256CBC( __m128i *Ciphertext, const __m128i *Plaintext,
const __m128i *ExpandedKey, __m128i IV, uint32_t BlockCount );
void AES256CBC( v128_t *Ciphertext, const v128_t *Plaintext,
const v128_t *ExpandedKey, v128_t IV, uint32_t BlockCount );
#endif