4203dd9b79
- Reverted libbg-cli back to static linkage (for now) to fix problem with cli-generate generated code. - Fixed header include path in cli-generate. - Rewrote iobuf and str number formatting using fmt. - Added missing selftest.c file to the dist tarball (oops). - Fixed uint##.h headers. - Flattened out the installed headers and libraries. NOTE: This means this package is not backwards compatible. - Added dns library (modified from public domain djbdns-1.05) - Added wildcard handling and substitution to bg-installer. - Added reversed IPv4 formatting functions (from Jorge Valdes). - Added str_end* and str_case_end* functions, parallel to str_start* and str_case_start* but for suffixes. - Added the ability to use arbitrary format functions in fmt_multi. - Added support for enumerate and itemize in cli-generate. - Added surfrand_uniform function, protected against bias.
15 lines
587 B
C
15 lines
587 B
C
$NetBSD: patch-crypto_hmac-md5.c,v 1.2 2017/01/02 02:18:30 schmonz Exp $
|
|
|
|
Rename hmac to bghmac.
|
|
|
|
--- crypto/hmac-md5.c.orig 2016-12-18 09:59:13.731995800 +0000
|
|
+++ crypto/hmac-md5.c
|
|
@@ -65,7 +65,7 @@ static void HMACTest(const char* key, co
|
|
const str data_str = { (char*)data, strlen(data), 0 };
|
|
unsigned char digest[128/8];
|
|
unsigned i;
|
|
- hmac(&hmac_md5, &key_str, &data_str, digest);
|
|
+ bghmac(&hmac_md5, &key_str, &data_str, digest);
|
|
printf("HMAC (%d,%d) = ", key_str.len, data_str.len);
|
|
for (i = 0; i < sizeof digest; ++i) printf("%02x", digest[i]);
|
|
printf("\n");
|