aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/shacal2/shacal2.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-08-13 08:38:26 -0400
committerJack Lloyd <[email protected]>2017-08-13 08:38:26 -0400
commit8804eeece5af90b728e337c7e0877549ea74eec9 (patch)
tree558c692afe04770efc3077bba0f3247e99188231 /src/lib/block/shacal2/shacal2.h
parent61a7a5757bfe19ff1a686055ab75cae1fc9f485e (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.h5
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;
};