| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
GCC 4.3 on ARM converts __builtin_bswap32 into a jump into libgcc
rather than 4 simple instructions, so write it out using inline asm
instead.
|
|
|
|
| |
Avoid using auto_ptr in the CVC headers.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in build.h named BOTAN_DISTRIBUTION_INFO. The default value is
'unspecified'. People packaging botan could set this to another
value, for instance 'Gentoo 1.9.13-r3' or 'Debian 1.9.13-1', or
'pristine' to indicate a completely unmodified/stock version. This
was suggested by Zooko for Crypto++ in
http://sourceforge.net/apps/trac/cryptopp/ticket/11
and seemed like an idea worth stealing.
Don't default the version datestmap to the current day if unset,
instead set to zero. This allows applications to detect
unreleased versions. Document that version_datestamp will return
zero for unreleased versions.
Change the version_string function to return more information about
the current version, including the release date and distribution
information. It will now return strings like:
Botan 1.9.13 (released 20110207, distribution Gentoo 1.9.13-r3)
or for an unreleased version:
Botan 1.9.13 (unreleased version, distribution unspecified)
|
|
|
|
|
|
|
|
| |
FreeBSD. It is not being installed by Clang, so it appears on my
machine Clang is actually pulling the header in from GCC's private
include directory.
Closes PR 137
|
|
|
|
|
| |
rotate_right for SIMD types as a template specialization to avoid
problems in the amalgamation.
|
|
|
|
|
|
| |
intrinsics headers in header files. This is particularly useful for
allowing code that will be compiled by nvcc to include loadstor.h,
but might be useful in other situations as well.
|
| |
|
| |
|
|
|
|
|
| |
Remove version of search_map that returns two distinguishing results;
only used in one place, and that can be replaced by a call to count()
|
| |
|
|
|
|
|
|
|
|
| |
query, clearing, and cloning. Applies to ciphers, hashes, MACs, and
PBKDFs. May extend to KDFs later as well.
A single combined hierarchy in particular will make the algo_factory
much simpler.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This breaks API for anyone creating their own Filter types, but it had
to happen eventually.
|
|
|
|
|
| |
and writes the bytes to the stream in big-endian order. Use it in
KDF2, MGF1, and FPE.
|
| |
|
|
|
|
| |
especially now that the standalone hex encoder is around
|
| |
|
|
|
|
|
|
|
|
|
|
| |
errors of the form
if(some_expr_indicating_failure)
throw Internal_Error("Some mildly informative message");
Make this simpiler with the addition of a BOTAN_ASSERT macro which will
throw an exception upon failure.
|
| |
|
| |
|
|
|
|
|
|
| |
pointer to a nonce struct; presumably for slightly better typechecking.
In case we're compiling under such a mode, case the first argument to
FreeLibrary and GetProcAddress to a HMODULE.
|
|
|
|
|
| |
to fix compilation on Solaris. Everybody else, including POSIX.1, uses
void* here, but as usual Solaris likes to be special.
|
| |
|
|
|
|
| |
to avoid a Sun Studio bug.
|
| |
|
|
|
|
| |
yet tested.
|
|
|
|
|
|
| |
to pointers-to-functions (which, admittedly, is undefined in ISO C++,
but doing this is required to use dlopen). Using the dumb hammer of a
C-style cast works, though.
|
|
|
|
| |
fine with latest SVN.
|
|
|
|
| |
an .S file is, so allow it for x86-64. Tested/works with Clang SVN.
|
|
|
|
|
|
| |
x86-64, then enable SSE2 anyway because we know any x86-64 processor
does have SSE2, and the OS has to support it because it's part of the
standard ABIs.
|
| |
|
|
|
|
|
|
|
|
| |
Linux, Solaris, and the BSDs.
Solaris and BSD are untested, but it seems like they should work.
Using libdl on Solaris is seemingly only required in Solaris 9 and
earlier, but 10 has a stub library so it should work there as well.
|
|
|
|
|
|
|
|
|
|
| |
the system dynamic linker (if any). Currently it only supports dlopen,
and is only enabled on Linux. It will almost certainly work on BSDs
and Solaris as well, though, and should be easy to extend to support
Win32-style dynamic loading.
Also add a new engine, Dynamically_Loaded_Engine, which loads up a new
Engine object from a shared library/DLL.
|
| |
|
|
|
|
| |
Rename CPUID::has_aes_intel to has_aes_ni.
|
|
|
|
|
|
| |
work for 32 and 64 bit integers. Using these instead of inline asm may
offer better scheduling on x86, and additionally offers native
byteswapping on other platforms (PPC, ARM, etc).
|
|
|
|
|
| |
initialize() call which must be called prior to use of any other
functions.
|
|
|
|
|
|
| |
(amd64_eng and ia32_eng) into a new asm_engine. This same engine could
also be used in the event that asm code for other CPUs was added later
on.
|
| |
|