diff options
Diffstat (limited to 'src/stream/ofb')
-rw-r--r-- | src/stream/ofb/ofb.cpp | 2 | ||||
-rw-r--r-- | src/stream/ofb/ofb.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stream/ofb/ofb.cpp b/src/stream/ofb/ofb.cpp index 921401d32..1f25c5c14 100644 --- a/src/stream/ofb/ofb.cpp +++ b/src/stream/ofb/ofb.cpp @@ -21,7 +21,7 @@ OFB::OFB(BlockCipher* ciph) : permutation(ciph) { position = 0; - buffer.resize(permutation->BLOCK_SIZE); + buffer.resize(permutation->block_size()); } /* diff --git a/src/stream/ofb/ofb.h b/src/stream/ofb/ofb.h index af771de15..587a30bab 100644 --- a/src/stream/ofb/ofb.h +++ b/src/stream/ofb/ofb.h @@ -24,7 +24,7 @@ class BOTAN_DLL OFB : public StreamCipher void set_iv(const byte iv[], size_t iv_len); bool valid_iv_length(size_t iv_len) const - { return (iv_len <= permutation->BLOCK_SIZE); } + { return (iv_len <= permutation->block_size()); } std::string name() const; |