diff options
author | Jack Lloyd <[email protected]> | 2017-08-13 08:38:26 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-08-13 08:38:26 -0400 |
commit | 8804eeece5af90b728e337c7e0877549ea74eec9 (patch) | |
tree | 558c692afe04770efc3077bba0f3247e99188231 /src/lib/block/shacal2/shacal2.h | |
parent | 61a7a5757bfe19ff1a686055ab75cae1fc9f485e (diff) |
Add SHACAL2 in generic SIMD
Bit over 2x faster on my desktop
Diffstat (limited to 'src/lib/block/shacal2/shacal2.h')
-rw-r--r-- | src/lib/block/shacal2/shacal2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/block/shacal2/shacal2.h b/src/lib/block/shacal2/shacal2.h index 14fde2fbc..f0ade5e50 100644 --- a/src/lib/block/shacal2/shacal2.h +++ b/src/lib/block/shacal2/shacal2.h @@ -28,6 +28,11 @@ class BOTAN_DLL SHACAL2 final : public Block_Cipher_Fixed_Params<32, 16, 64, 4> private: void key_schedule(const uint8_t[], size_t) override; +#if defined(BOTAN_HAS_SHACAL2_SIMD) + void simd_encrypt_4(const uint8_t in[], uint8_t out[]) const; + void simd_decrypt_4(const uint8_t in[], uint8_t out[]) const; +#endif + secure_vector<uint32_t> m_RK; }; |