setup script improvements, automatically clone xmrig-hac and build for multiple platforms

This commit is contained in:
2026-03-03 01:47:44 -06:00
parent c778e03f37
commit 0d30ebc8e8
560 changed files with 146800 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
#define TEST_NAME "auth6"
#include "cmptest.h"
/* "Test Case 2" from RFC 4231 */
static unsigned char key[32] = "Jefe";
static unsigned char c[] = "what do ya want for nothing?";
static unsigned char a[64];
int
main(void)
{
int i;
crypto_auth_hmacsha512(a, c, sizeof c - 1U, key);
for (i = 0; i < 64; ++i) {
printf(",0x%02x", (unsigned int) a[i]);
if (i % 8 == 7)
printf("\n");
}
return 0;
}