diff options
author | lloyd <[email protected]> | 2008-04-10 05:52:37 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-10 05:52:37 +0000 |
commit | f15ca39257de8983babb95f7f5d589a4e555a864 (patch) | |
tree | 3f41f5e38cc5d07e3241db716d582fa146a4ac3d /src/emsa4.cpp | |
parent | 59e71322cad61ff2f09664fc3e59b5446af4566a (diff) | |
parent | 9ec64ce60cad6c825b7cf40306a359d019e2c13c (diff) |
propagate from branch 'net.randombit.botan' (head 6afe2db1f710f75bc27e189bb8bdb23613ce1ca3)
to branch 'net.randombit.botan.remove-libstate' (head e40f0dbdfd847024c30fa0092c2acefc19a550b8)
Diffstat (limited to 'src/emsa4.cpp')
-rw-r--r-- | src/emsa4.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emsa4.cpp b/src/emsa4.cpp index 3465d63d7..831afd590 100644 --- a/src/emsa4.cpp +++ b/src/emsa4.cpp @@ -7,7 +7,7 @@ #include <botan/lookup.h> #include <botan/look_pk.h> #include <botan/bit_ops.h> -#include <botan/rng.h> +#include <botan/libstate.h> namespace Botan { @@ -43,7 +43,7 @@ SecureVector<byte> EMSA4::encoding_of(const MemoryRegion<byte>& msg, const u32bit output_length = (output_bits + 7) / 8; SecureVector<byte> salt(SALT_SIZE); - Global_RNG::randomize(salt, SALT_SIZE); + global_state().randomize(salt, SALT_SIZE); for(u32bit j = 0; j != 8; ++j) hash->update(0); |