diff options
author | lloyd <[email protected]> | 2011-04-18 18:35:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-04-18 18:35:38 +0000 |
commit | c4bedb32c0547e8f6b67ece566050073726120f5 (patch) | |
tree | 17183000888bda5156637360d10d9901ced3565b /src/constructs | |
parent | 06a32c91e639cc2b0c636553a8aa395aa90d4d37 (diff) |
Maintainer mode warning cleanups, mostly for C style casts which I
added to the flags here.
Diffstat (limited to 'src/constructs')
-rw-r--r-- | src/constructs/fpe/fpe.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/constructs/fpe/fpe.cpp b/src/constructs/fpe/fpe.cpp index 1023b067c..5491af133 100644 --- a/src/constructs/fpe/fpe.cpp +++ b/src/constructs/fpe/fpe.cpp @@ -105,10 +105,10 @@ FPE_Encryptor::FPE_Encryptor(const SymmetricKey& key, if(n_bin.size() > MAX_N_BYTES) throw std::runtime_error("N is too large for FPE encryption"); - mac->update_be((u32bit)n_bin.size()); + mac->update_be(static_cast<u32bit>(n_bin.size())); mac->update(&n_bin[0], n_bin.size()); - mac->update_be((u32bit)tweak.size()); + mac->update_be(static_cast<u32bit>(tweak.size())); mac->update(&tweak[0], tweak.size()); mac_n_t = mac->final(); @@ -119,9 +119,9 @@ BigInt FPE_Encryptor::operator()(size_t round_no, const BigInt& R) SecureVector<byte> r_bin = BigInt::encode(R); mac->update(mac_n_t); - mac->update_be((u32bit)round_no); + mac->update_be(static_cast<u32bit>(round_no)); - mac->update_be((u32bit)r_bin.size()); + mac->update_be(static_cast<u32bit>(r_bin.size())); mac->update(&r_bin[0], r_bin.size()); SecureVector<byte> X = mac->final(); |