From 7e2c92527209d47098c0b7b9712fafcd2455590e Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 14 Aug 2017 05:33:44 -0400 Subject: Notify callers of parallel ops for AES, IDEA, Noekeon, SHACAL2 and Threefish --- src/lib/block/aes/aes.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/block/aes/aes.h') diff --git a/src/lib/block/aes/aes.h b/src/lib/block/aes/aes.h index 52f877e36..a74280947 100644 --- a/src/lib/block/aes/aes.h +++ b/src/lib/block/aes/aes.h @@ -26,6 +26,8 @@ class BOTAN_DLL AES_128 final : public Block_Cipher_Fixed_Params<16, 16> std::string provider() const override; std::string name() const override { return "AES-128"; } BlockCipher* clone() const override { return new AES_128; } + size_t parallelism() const override; + private: void key_schedule(const uint8_t key[], size_t length) override; @@ -59,6 +61,8 @@ class BOTAN_DLL AES_192 final : public Block_Cipher_Fixed_Params<16, 24> std::string provider() const override; std::string name() const override { return "AES-192"; } BlockCipher* clone() const override { return new AES_192; } + size_t parallelism() const override; + private: #if defined(BOTAN_HAS_AES_SSSE3) void ssse3_encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const; @@ -93,6 +97,8 @@ class BOTAN_DLL AES_256 final : public Block_Cipher_Fixed_Params<16, 32> std::string name() const override { return "AES-256"; } BlockCipher* clone() const override { return new AES_256; } + size_t parallelism() const override; + private: #if defined(BOTAN_HAS_AES_SSSE3) void ssse3_encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const; -- cgit v1.2.3