summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crc32.c1
-rw-r--r--crypto/hmac.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/crypto/crc32.c b/crypto/crc32.c
index 58637bd770..3bff6feb28 100644
--- a/crypto/crc32.c
+++ b/crypto/crc32.c
@@ -12,6 +12,7 @@
#include <common.h>
#include <xfuncs.h>
#include <fs.h>
+#include <crc.h>
#include <fcntl.h>
#include <malloc.h>
#include <linux/ctype.h>
diff --git a/crypto/hmac.c b/crypto/hmac.c
index 20af2a56de..05b9b50f12 100644
--- a/crypto/hmac.c
+++ b/crypto/hmac.c
@@ -173,8 +173,8 @@ static int digest_hmac_register(char *name, unsigned int pad_length)
dh->name = xstrdup(name);
dh->pad_length = pad_length;
dh->algo = hmac_algo;
- dh->algo.base.name = asprintf("hmac(%s)", name);
- dh->algo.base.driver_name = asprintf("hmac(%s)-generic", name);
+ dh->algo.base.name = basprintf("hmac(%s)", name);
+ dh->algo.base.driver_name = basprintf("hmac(%s)-generic", name);
return digest_algo_register(&dh->algo);
}