| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
Java SecureRandom PRNG algorithm. (I accidentally checked in the header
in the previous revision).
|
|
|
|
| |
instead of introducing new typedefs.
|
|
|
|
|
|
|
|
| |
from the NIST CAVS dataset, taken on June 7 2008 from
http://csrc.nist.gov/groups/STM/cavp/standards.html
AES-128, AES-192, AES-256, and 2 and 3-key TripleDES variants are
all tested.
|
|
|
|
|
|
| |
length to zero. That is because we encoded our seededness state as being
if (and only if) V has non-zero length. After clearing, we have reset all
state.
|
|\
| |
| |
| | |
and 'ce120a1a57e265d0ce93bd2567d9f1f9ec8e25d9'
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
it was seeded if and only if the underlying PRNG was seeded. However if
the PRNG always returned as being seeded, we would never generate a V
value, etc (leaving them at the default zero). This would not occur with
any of Botan's built in PRNGs since their implementations require that
add_randomness be called at least once before is_seeded will return true.
However this is not an invariant of the general RandomNumberGenerator
interface.
Now, the X9.31 PRNG is only seeded after it has a) detected that the PRNG
is seeded, and b) generated a new random key and V vector.
|
|/ |
|
| |
|
| |
|
| |
|
|
|
|
| |
value from the RNG. (Would an adapter class be more appropriate?)
|
|
|
|
| |
to use) explicit arguments to the constructor instead of being hardcoded.
|
| |
|
|
|
|
| |
and in readme.txt
|
|
|
|
| |
PK_Encryptor_MR_with_EME::enc references the global PRNG currently
|
| |
|
| |
|
|
|
|
| |
RandomNumberGenerator reference. Update all callers.
|
| |
|
| |
|
| |
|
|
|
|
| |
instead)
|
| |
|
|
|
|
| |
Update the examples
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
random bits. Now they take a reference to a RandomNumberGenerator object.
This was applied several times out, so now the constructors to private
key objects also take a RandomNumberGenerator& argument. This is also true
for a number of randomized algorithms (Miller-Rabin, for instance).
You can get a reference to the global PRNG with
global_state().prng_reference()
This is a provisional thing: and warning: it is not thread safe! If this
is a problem instead keep per-thread PRNGs and pass them were needed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the second argument was NULL, it would default to a new Randpool.
But this introduces an annoying dependency: really it is the caller who
is relying on Randpool. Make this explicit by passing a new Randpool
pointer to the constructor in Library_State.
This will break all callers using ANSI_X931_RNG's constructors with
default arguments. To regain the previous behavior, change:
ANSI_X931_RNG rng;
ANSI_X931_RNG rng("/*cipher name*/");
to
ANSI_X931_RNG rng(/*cipher name, default was AES-256 */, new Randpool);
You are free to pass another PRNG object if you like.
This make require inclusion of <botan/randpool.h>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
universal: this prevented it from decoding application, context-specific,
or private-class constructions.
Add a new parameter to BER_Decoder::start_cons which specifies the expected
class type (default universal). The decoder still verifies that the
constructed bit is set in the class tag. This provides parity with the
interface to the DER encoder.
Problem was found and reported by Falko Strenzke
|
|
|
|
| |
file
|
| |
|
| |
|
| |
|
|
|
|
| |
each caller.
|
|
|
|
|
|
| |
time format and converts it to a duration in seconds represented as a
u32bit. This is from Config::option_as_time, which is now implemented
simply as: return timespec_to_u32bit(option(key))
|
|
|
|
|
| |
ago, but the Config class still contained the declaration for
load_inifile() - remove it.
|
| |
|
|
|
|
|
|
| |
should allow when checking timestamps, just call it once and store the
value in the X509_Store object, passing it to validity_check with a new
argument for the allowed time slack.
|
|
|
|
| |
as that was the only place it was called from.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Including enums.h in needed places since asn1_int.h doesn't pull it in
anymore.
Remove Config::choose_sig_format, and move its logic into its only
caller, the (global!) choose_sig_format in x509_ca.cpp
|
|\
| |
| |
| |
| |
| | |
d4d75cf4f682ec63e316b853617e7cf9ba093272)
to branch 'net.randombit.botan' (head 2fac918f1a1cb77d155cf434177e443d41e9e517)
|
| |
| |
| |
| |
| |
| | |
grab back of stuff, most of which are not used outside of very specific
contexts, and some only internally. I am thinking to remove it and
put each individual enum in an appropriate header.
|
| | |
|
| | |
|
| | |
|