diff options
author | lloyd <[email protected]> | 2009-08-11 17:12:00 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-08-11 17:12:00 +0000 |
commit | 13d50de7b7675d798437c0d465acedd23e08b092 (patch) | |
tree | 7fefcd94e67475c24f58f951e117746e1984589e /src/filters/basefilt.cpp | |
parent | f51841ba5237952dda3e76df643d3ae13bed3df5 (diff) |
Modify Keyed_Filter so it is a pure interface
Modify ECB to use parallel encryption/decryption where possible
Add toggles in build.h specifying how many blocks to process in parallel.
Defaults to 8 blocks for all modes, which is sufficient that any likely
parallelism can be extracted (via SIMD or concurrent execution) but not
so much as to seem likely to cause cache problems (8*128 bits = 128 bytes,
or two x86 cache lines)
Diffstat (limited to 'src/filters/basefilt.cpp')
-rw-r--r-- | src/filters/basefilt.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/filters/basefilt.cpp b/src/filters/basefilt.cpp index 02dbd8a73..c91a5aa62 100644 --- a/src/filters/basefilt.cpp +++ b/src/filters/basefilt.cpp @@ -50,25 +50,4 @@ Fork::Fork(Filter* filters[], u32bit count) set_next(filters, count); } -/* -* Set the algorithm key -*/ -void Keyed_Filter::set_key(const SymmetricKey& key) - { - if(base_ptr) - base_ptr->set_key(key); - else - throw Invalid_State("Keyed_Filter::set_key: No base algorithm set"); - } - -/* -* Check if a keylength is valid -*/ -bool Keyed_Filter::valid_keylength(u32bit n) const - { - if(base_ptr) - return base_ptr->valid_keylength(n); - throw Invalid_State("Keyed_Filter::valid_keylength: No base algorithm set"); - } - } |