diff options
Diffstat (limited to 'src/kdf/mgf1/mgf1.cpp')
-rw-r--r-- | src/kdf/mgf1/mgf1.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kdf/mgf1/mgf1.cpp b/src/kdf/mgf1/mgf1.cpp index 6dc028bad..7d949c2b8 100644 --- a/src/kdf/mgf1/mgf1.cpp +++ b/src/kdf/mgf1/mgf1.cpp @@ -6,7 +6,6 @@ */ #include <botan/mgf1.h> -#include <botan/get_byte.h> #include <botan/exceptn.h> #include <botan/internal/xor_buf.h> #include <algorithm> @@ -25,8 +24,7 @@ void MGF1::mask(const byte in[], size_t in_len, byte out[], while(out_len) { hash->update(in, in_len); - for(size_t i = 0; i != 4; ++i) - hash->update(get_byte(i, counter)); + hash->update_be(counter); SecureVector<byte> buffer = hash->final(); size_t xored = std::min<size_t>(buffer.size(), out_len); |