mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 01:16:31 -05:00
Implement G23 Extended Cauchy construction for AES RAID mode
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
This commit is contained in:
parent
a831853092
commit
48bed76dd1
20 changed files with 5716 additions and 5639 deletions
|
|
@ -74,6 +74,15 @@ static __always_inline void * __align_ptr(void *ptr, uintptr_t size)
|
|||
return (void *)offset;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true at the four transitions between the five G23 cosets.
|
||||
* In descending Horner loops, d identifies the q[d] -> q[d + 1] step.
|
||||
*/
|
||||
static __always_inline int raid_g23_x3(int d)
|
||||
{
|
||||
return d == 50 || d == 101 || d == 152 || d == 203;
|
||||
}
|
||||
|
||||
/*
|
||||
* Includes the main interface headers.
|
||||
*/
|
||||
|
|
@ -357,7 +366,6 @@ extern struct gfconst16 gfconst16 __aligned(16);
|
|||
* Tables.
|
||||
*/
|
||||
extern const uint8_t raid_gfmul_raid[256][256] __aligned(256);
|
||||
extern const uint8_t raid_gfexp_raid[256] __aligned(256);
|
||||
extern const uint8_t raid_gfinv_raid[256] __aligned(256);
|
||||
extern const uint8_t raid_gfvandermonde_raid[3][256] __aligned(256);
|
||||
extern const uint8_t raid_gfcauchy_raid[6][256] __aligned(256);
|
||||
|
|
@ -368,7 +376,6 @@ extern const uint8_t raid_gfmulpshufb_raid[256][2][16] __aligned(256);
|
|||
#endif
|
||||
|
||||
extern const uint8_t raid_gfmul_aes[256][256] __aligned(256);
|
||||
extern const uint8_t raid_gfexp_aes[256] __aligned(256);
|
||||
extern const uint8_t raid_gfinv_aes[256] __aligned(256);
|
||||
extern const uint8_t raid_gfcauchy_aes[6][256] __aligned(256);
|
||||
#if defined(CONFIG_X86) || defined(CONFIG_NEON) || defined(CONFIG_NEON32)
|
||||
|
|
@ -377,7 +384,6 @@ extern const uint8_t raid_gfmulpshufb_aes[256][2][16] __aligned(256);
|
|||
#endif
|
||||
|
||||
extern const uint8_t(*raid_gfmul)[256];
|
||||
extern const uint8_t *raid_gfexp;
|
||||
extern const uint8_t *raid_gfinv;
|
||||
extern const uint8_t(*raid_gfvandermonde)[256];
|
||||
extern const uint8_t(*raid_gfcauchy)[256];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue