summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/hmac
AgeCommit message (Collapse)AuthorFilesLines
2018-02-17Provide HMAC_CTX_new(), HMAC_CTX_free(), HMAC_CTX_reset() andjsing2-11/+52
HMAC_CTX_get_md().
2017-05-02use freezero() instead of memset/explicit_bzero + free. Substantiallyderaadt1-7/+2
reduces conditional logic (-218, +82). MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH cache alignment calculation bn/bn_exp.c wasn'tt quite right. Two other tricky bits with ASN1_STRING_FLAG_NDEF and BN_FLG_STATIC_DATA where the condition cannot be collapsed completely. Passes regress. ok beck
2017-03-03Ensure MD and key initialized before processing HMACinoguchi1-4/+18
Ensure both MD and key have been initialized before processing HMAC. Releasing HMAC_CTX in error path of HMAC(). In regress test, added test 4,5,6 and cleaned up the code. ok jsing@
2017-01-29Send the function codes from the error functions to the bit bucket,beck1-4/+3
as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@
2015-09-10Correct spelling of OPENSSL_cleanse.jsing2-4/+4
ok miod@
2015-07-20Various memory leaks upon error or unchecked allocations.miod1-4/+13
ok doug@
2015-02-10Replace assert() and OPENSSL_assert() calls with proper error return paths.miod1-4/+11
Careful review, feedback & ok doug@ jsing@
2014-07-11Only import cryptlib.h in the four source files that actually need it.jsing3-8/+9
Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@
2014-07-10Stop including standard headers via cryptlib.h - pull in the headers thatjsing2-2/+6
are needed in the source files that actually require them. ok beck@ miod@
2014-06-21More KNF.jsing4-42/+39
2014-06-21KNFmiod3-178/+186
2014-06-12tags as requested by miod and teduderaadt4-2/+4
2014-04-27Use C99 initializers for the various FOO_METHOD structs. More readable, andmiod2-50/+21
avoid unreadable/unmaintainable constructs like that: const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = { EVP_PKEY_CMAC, EVP_PKEY_CMAC, 0, "CMAC", "OpenSSL CMAC method", 0,0,0,0, 0,0,0, cmac_size, 0, 0,0,0,0,0,0,0, cmac_key_free, 0, 0,0 }; ok matthew@ deraadt@
2014-04-17Change library to use intrinsic memory allocation functions instead ofbeck2-5/+5
OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
2014-04-15we don't use these files for buildingtedu1-75/+0
2014-04-15remove FIPS mode support. people who require FIPS can buy something thattedu1-37/+0
meets their needs, but dumping it in here only penalizes the rest of us. ok beck deraadt
2014-04-15Moved to regress/lib/libcrypto.miod1-164/+0
2014-04-15Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternitybeck1-11/+0
with the bearded ones... some API's that nobody should be using will dissapear with this commit.
2014-04-14remove auto-generated dependencies from the old unused build system, soderaadt1-35/+0
that it is easier to find code pieces. They are getting in the way. ok miod
2012-10-13resolve conflictsdjm1-0/+37
2012-10-13import OpenSSL-1.0.1cdjm2-6/+10
2011-11-03openssl-1.0.0e: resolve conflictsdjm1-3/+0
2011-11-03import OpenSSL 1.0.0edjm1-0/+2
2010-10-01resolve conflicts, fix local changesdjm3-133/+67
2010-10-01import OpenSSL-1.0.0adjm3-10/+466
2009-01-09resolve conflictsdjm1-0/+3
2009-01-09import openssl-0.9.8jdjm1-7/+8
2009-01-05update to openssl-0.9.8i; tested by several, especially krw@djm2-0/+8
2008-09-06resolve conflictsdjm2-23/+10
2008-09-06import of OpenSSL 0.9.8hdjm1-23/+9
2006-06-27resolve conflictsdjm2-9/+7
2006-06-27import of openssl-0.9.7jdjm1-1/+1
2005-04-29resolve conflictsdjm2-0/+17
2005-04-29import of openssl-0.9.7g; tested on platforms from alpha to zaurus, ok deraadt@djm1-0/+99
2003-05-12merge 0.9.7b with local changes; crank majors for libssl/libcryptomarkus3-20/+40
2002-09-17undo local change, HMAC_Init() already does HMAC_CTX_init if(key && md)markus1-1/+0
2002-09-10merge openssl-0.9.7-beta3, tested on vax by miod@markus1-7/+17
2002-09-04execute bourne shell scripts with 'sh' and not with $SHELLmarkus1-1/+1
2002-09-03remove whitespace changes (keep diffs to 0.9.7-beta1 minimal)markus1-1/+1
2002-05-15OpenSSL 0.9.7 stable 2002 05 08 mergebeck4-36/+55
2001-06-22openssl-engine-0.9.6a mergebeck1-1/+2
2000-12-15openssl-engine-0.9.6 mergebeck2-6/+7
2000-04-15OpenSSL 0.9.5a mergebeck1-1/+3
2000-03-19OpenSSL 0.9.5 mergebeck3-5/+5
*warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2 if you are using the ssl26 packages for ssh and other things to work you will need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
1999-11-23do not assume shell scripts are +x; dderaadt1-1/+1
1999-09-29OpenSSL 0.9.4 mergebeck4-67/+72
1998-10-05Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD buildryker4-0/+498
functionality for shared libs. Note that routines such as sslv2_init and friends that use RSA will not work due to lack of RSA in this library. Needs documentation and help from ports for easy upgrade to full functionality where legally possible.