| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
immediately fall back the the plain malloc-based allocator, which is
typically quite a bit faster.
|
|
|
|
|
| |
problems for Monotone, and anyway it is a reasonable exception to have
around for signalling MAC validation errors, etc.
|
| |
|
|
|
|
|
| |
reference. Otherwise Visual C++ dies because apparently the Win32 ABI
doesn't know how to pass a __m128i as a function parameter. :/
|
|
|
|
|
|
| |
it obvious that truncation is occuring. Something to deal with in 2038
I guess, though get_nanoseconds_clock is already an unknown/unspecified
epoch (since the Windows timer uses 1/1/1601 as the epoch)
|
| |
|
| |
|
|
|
|
| |
including loadstor.h actually just needed get_byte and nothing else.
|
| |
|
| |
|
|\
| |
| |
| | |
and 'e30a741f6014987e9683842ede22c44b2db03c56'
|
| |
| |
| |
| |
| |
| |
| | |
Invalid_Argument just a typedef for std::invalid_argument. Make
Botan::Exception a typedef for std::runtime_error. Make Memory_Exhaustion
a public exception, and use it in other places where memory allocations
can fail.
|
|/ |
|
|
|
|
|
|
| |
and don't even have access to a VIA with AES so could not test it anyway.
If someone else wants to do it, then the implementation for AES-NI should
provide a good template.
|
|\
| |
| |
| | |
and 'aafa02a299b61c7762ae71dfc429396aa6bd25b3'
|
| | |
|
|/
|
|
|
|
| |
application code that wants to use loadstor.h, since that loads bswap.h
and if SSSE3 isn't enabled via -march GCC will error out. Doesn't seem to
be at all faster than the shuffle-based bswap for SSE2 on a Core2 in any case.
|
| |
|
|
|
|
| |
Also, fix AltiVec detection on Linux and NetBSD for most G4s.
|
|
|
|
| |
detection.
|
| |
|
| |
|
|
|
|
|
|
| |
It would be useful in its own right, many other things need to do hashing,
but the tr1 dependency kills it right now. Something to revisit in the C++0x
branch, perhaps?
|
|\
| |
| |
| |
| |
| | |
5749645b3dc61c94f9b2980aa7773a3849105a81)
to branch 'net.randombit.botan.buf-op' (head 7c1f7c88bd4d016ff49f098e47ac6032ff43041b)
|
| |\
| | |
| | |
| | |
| | |
| | | |
79ed5b0f9057b2d40335e268fdb9f375837d1d11)
to branch 'net.randombit.botan.buf-op' (head 87160704bdc30b0a4cb19fd4516e20e85dca2869)
|
| | |
| | |
| | |
| | | |
(std::tr1::function).
|
|/ / |
|
|/
|
|
| |
I tend to rewrite often in particular files while debugging things.
|
| |
|
|
|
|
| |
the calendar time without tying to a particular format. From the C++0x branch.
|
| |
|
|
|
|
|
|
|
| |
Add macros for OS support of gmtime_r (Unix) and gmtime_s (Win32) to deal
with thread-unsafety of std::gmtime. Only enable gmtime_r on Linux currently,
but it's probably available pretty much everywhere (specified in pthreads,
origininally, AFAICT).
|
| |
|
| |
|
|
|
|
|
|
| |
or big endian, for large loads always memcpy, then go back and swap as
needed. Otherwise (unknown or mixed endian) just load one at a time as
usual.
|
|
|
|
|
| |
but if SSE2 or SSSE3 is available uses SIMD magic to swap 4 32 bit values
at once.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bswap.h); too many external apps rely on loadstor.h existing.
Define 64-bit generic bswap in terms of 32-bit bswap, since it's
not much slower if 32-bit is also generic, and much faster if
it's not. This may be quite helpful on 32-bit x86 in particular.
Change formulation of generic 32-bit bswap. It may be faster or
slower depending on the CPU, especially the latency and throuput
of rotate instructions, but should be faster on an ideally
superscalar processor with rotate instructions (ie, what I expect
future CPUs to look more like).
|
|
|
|
| |
Move most of the engine headers to internal
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes for the amalgamation generator for internal headers.
Remove BOTAN_DLL exporting macros from all internal-only headers;
the classes/functions there don't need to be exported, and
avoiding the PIC/GOT indirection can be a big win.
Add missing BOTAN_DLLs where necessary, mostly gfpmath and cvc
For GCC, use -fvisibility=hidden and set BOTAN_DLL to the
visibility __attribute__ to export those classes/functions.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QueryPerformanceCounter, into an entropy source hres_timer. Its
results, if any, do not count as contributing entropy to the poll.
Convert the other (monotonic/fixed epoch) timers to a single function
get_nanoseconds_clock(), living in time.h, which statically chooses
the 'best' timer type (clock_gettime, gettimeofday, std::clock, in
that order depending on what is available). Add feature test macros
for clock_gettime and gettimeofday.
Remove the Timer class and timer.h. Remove the Timer& argument to the
algorithm benchmark function.
|
|
|
|
| |
system before returning a new instance.
|
|
|
|
| |
build magic, name them asm_macr_ARCH.h. Change all including files accordingly.
|
| |
|
| |
|
|
|
|
| |
which is currently just a stub returning false.
|
|
|
|
|
| |
Rename BOTAN_UNALIGNED_LOADSTOR_OK to BOTAN_UNALIGNED_MEMORY_ACCESS_OK
which is somewhat more clear as to the point.
|
| |
|