From 301ed7a798b7eaf8a6684f15dba5758f5a9520ea Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 10 Mar 2022 09:15:26 -0500 Subject: [PATCH] Fix mistake in b64e invocation --- confluent_osdeploy/utils/clortho.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/utils/clortho.c b/confluent_osdeploy/utils/clortho.c index 67d6b709..c5dd88fd 100644 --- a/confluent_osdeploy/utils/clortho.c +++ b/confluent_osdeploy/utils/clortho.c @@ -98,7 +98,7 @@ int getpasshmac(int argc, char* argv[]) { fwrite(cryptpass, 1, strlen(cryptpass), outfile); fclose(outfile); hmac_sha256(hmac, cryptpass, strlen(cryptpass), hmackey, hmackeysize); - hmac64 = b64e(hmac); + hmac64 = b64e(hmac, 32); outfile = fopen(argv[3], "w"); fwrite(hmac64, 1, strlen(hmac64), outfile); fclose(outfile);