@@ -103,7 +103,7 @@ namespace nil {
103
103
104
104
typedef typename std::conditional<
105
105
BlockBits == 128 && (KeyBits == 128 || KeyBits == 192 || KeyBits == 256 ),
106
- #if defined(CRYPTO3_HAS_RIJNDAEL_NI)
106
+ #if defined(CRYPTO3_HAS_RIJNDAEL_NI)
107
107
detail::ni_rijndael_impl<KeyBits, BlockBits, policy_type>,
108
108
#elif defined(CRYPTO3_HAS_RIJNDAEL_SSSE3)
109
109
detail::rijndael_ssse3_impl<KeyBits, BlockBits, policy_type>,
@@ -113,7 +113,7 @@ namespace nil {
113
113
detail::rijndael_power8_impl<KeyBits, BlockBits, policy_type>,
114
114
#else
115
115
detail::rijndael_impl<KeyBits, BlockBits, policy_type>,
116
- #endif
116
+ #endif
117
117
detail::rijndael_impl<KeyBits, BlockBits, policy_type>>::type impl_type;
118
118
119
119
public:
@@ -141,9 +141,11 @@ namespace nil {
141
141
constexpr static const std::size_t key_schedule_bytes = policy_type::key_schedule_bytes;
142
142
typedef typename policy_type::key_schedule_type key_schedule_type;
143
143
144
- template <template <typename , typename > class Mode , std::size_t ValueBits, typename Padding>
144
+ template <template <typename , typename > class Mode ,
145
+ typename StateAccumulator, std::size_t ValueBits,
146
+ typename Padding>
145
147
struct stream_cipher {
146
- typedef cipher_state<Mode<rijndael<KeyBits, BlockBits>, Padding>,
148
+ typedef cipher_state<Mode<rijndael<KeyBits, BlockBits>, Padding>, StateAccumulator,
147
149
stream_endian::little_octet_big_bit, ValueBits,
148
150
policy_type::word_bits * 2 > type_;
149
151
#ifdef CRYPTO3_HASH_NO_HIDE_INTERNAL_TYPES
0 commit comments