summaryrefslogtreecommitdiff
path: root/lib/crypto
Commit message (Collapse)AuthorAgeFilesLines
* lib: Fix strict-aliasing warning in md5 code.Andreas Schneider2014-01-091-3/+6
| | | | | | | | If the compiler detects strict aliasing problems it isn't able to optimize the code. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* crypto: fix build on OS XBjörn Jacke2014-01-081-0/+1
| | | | | | | | | | | we also need to use the CC_MD5_CTX from CommonCrypto here instead of the MD5_CTX Signed-off-by: Bjoern Jacke <bj@sernet.de> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jan 8 08:12:29 CET 2014 on sn-devel-104
* build: Remove the struct MD5Context conf file check.Andrew Bartlett2013-06-241-1/+0
| | | | | | | | | | Fix the build. Reviewed-by: Jeremy Allison <jra@samba.org> Tested-by: Christian Ambach <ambi@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Mon Jun 24 14:11:09 CEST 2013 on sn-devel-104
* build: Build with system md5.h on OpenIndianaAndrew Bartlett2013-06-196-8/+9
| | | | | | | | | | | | | | | | | | | | This changes (again...) our system md5 detection to cope with how OpenIndiana does md5. I'm becoming increasingly convinced this isn't worth our while (we should have just done samba_md5...), but for now this change seems to work on FreeBSD, OpenIndiana and Linux with libbsd. This needs us to rename struct MD5Context -> MD5_CTX, but we provide a config.h define to rename the type bad if MD5_CTX does not exist (it does however exist in the md5.h from libbsd). Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jun 19 21:32:36 CEST 2013 on sn-devel-104
* build: Update md5.h detection in waf and autoconf to use sys/md5.h and -lmdAndrew Bartlett2013-05-223-9/+19
| | | | | | | | | | | | | This brings the two build systems in sync, without using md5.h (which is a problem name) Tested on FreeBSD Andrew Bartlett Reviewed-by: Richard Sharpe <rsharpe@samba.org> Autobuild-User(master): Richard Sharpe <sharpe@samba.org> Autobuild-Date(master): Wed May 22 10:06:40 CEST 2013 on sn-devel-104
* crypto/aes_ccm_128: fix compile warning on openindianaBjörn Jacke2012-08-231-1/+1
|
* lib/crypto: add aes_ccm_128Stefan Metzmacher2012-07-234-1/+226
| | | | metze
* lib/crypto: Detect CommonCrypto and use it if availableMatthieu Patou2012-03-143-1/+15
| | | | | | | | | | CommonCrypto/CommonDigest is available on Mac and there is function in the libc for MD5 calculation. MD5Final is a C define of CC_MD5_Final. Under some circumstance we have the symbol defined twice in samba binaries on Snow Leopard at least. By detecting CommonCrypto/CommonDigest we end up always using the system version if available.
* lib/crypto: add aes_cmac_128_test.c as local.crypto.aes_cmac_128 testStefan Metzmacher2012-02-292-1/+93
| | | | metze
* lib/crypto: add aes_cmac_128* (rfc 4493)Stefan Metzmacher2012-02-294-4/+231
| | | | | | Thanks to Jeremy, Michael and Volker for the debugging! metze
* lib/crypto: fix hmac_sha256_final() prototypeStefan Metzmacher2012-02-271-1/+1
| | | | metze
* crypto: Use libbsd md5 header, if available.Jelmer Vernooij2012-02-073-2/+17
|
* crypto/md5: Change prototypes to match BSD.Jelmer Vernooij2012-02-071-5/+7
|
* crypto: Add prototype for main torture functions.Jelmer Vernooij2012-02-073-0/+4
|
* build: avoid util.h as a public header name due to conflict with MacOSAndrew Bartlett2011-09-233-3/+3
|
* lib/crypto: rename the SHA256_ functions to samba_SHA256_Andrew Tridgell2011-04-063-18/+18
| | | | | | | this prevents a symbol duplication with the openssl library, which may be linked in via a secondary library dependency Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3: Fix Coverity ID 958: BAD_SIZEOFVolker Lendecke2011-03-271-1/+1
| | | | | | This is supposed to wipe out the md5 context, not only the first bytes of it. Others, please check!
* tdb: Use <tdb.h> to include tdb so system headers are found when building ↵Jelmer Vernooij2011-02-281-1/+1
| | | | against system tdb.
* lib/crypto: add aes_cfb8_encrypt()Stefan Metzmacher2011-01-032-0/+26
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jan 3 17:32:07 CET 2011 on sn-devel-104
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-18/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* libcli-auth: Remove unnecessary dependency on libsamba-hostconfig.Jelmer Vernooij2010-10-111-1/+1
|
* lib/crypto: only include what is needed.Günther Deschner2010-06-1611-10/+15
| | | | Guenther
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+12
|
* Change uint_t to unsigned int in lib/cryptoMatt Kraai2010-02-021-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/crypto: include aes.h into crypto.hStefan Metzmacher2009-09-161-1/+1
| | | | metze
* lib/crypto: link in AES crypto for s4 as well.Günther Deschner2009-09-161-1/+2
| | | | Guenther
* lib/crypto: add aes encryption routines to main cryto lib.Günther Deschner2009-09-164-0/+1462
| | | | Guenther
* Fix a C++ warningVolker Lendecke2009-05-311-1/+1
|
* Fix missing symbols issues when building with shared libraries.Jelmer Vernooij2008-12-221-2/+1
|
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-202-0/+2
| | | | remove some unused functions.
* crypto: fix remaining strhex_to_data_blob callers.Günther Deschner2008-10-183-11/+14
| | | | | | Jelmer, please check. Guenther
* Use data_blob() for now, since it seems to be the only function available in ↵Jelmer Vernooij2008-10-111-1/+1
| | | | both Samba 3 and Samba 4.
* Make sure to allocate copy for arc4 data, to avoid problems freeingJelmer Vernooij2008-10-111-1/+1
| | | | later.
* Prevent errors with data_blob() being a macro in s4 and function in s3.Jelmer Vernooij2008-10-111-1/+1
|
* Merge branch 'master' of ssh://git.samba.org/data/git/samba into arc4Jelmer Vernooij2008-09-245-4/+6
|\ | | | | | | | | Conflicts: source3/include/includes.h
| * Fix include paths.Jelmer Vernooij2008-09-246-5/+7
| |
* | Use common arcfour implementation.Jelmer Vernooij2008-09-243-11/+17
|/
* Use shared copy of hmac5 implementation.Jelmer Vernooij2008-09-242-1/+2
|
* Move source4/lib/crypto to lib/crypto.Jelmer Vernooij2008-09-2418-0/+1596