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

@@ -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