summaryrefslogtreecommitdiff
path: root/host/lib/signature_digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/signature_digest.c')
-rw-r--r--host/lib/signature_digest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/signature_digest.c b/host/lib/signature_digest.c
index ca560c94..e90a56ed 100644
--- a/host/lib/signature_digest.c
+++ b/host/lib/signature_digest.c
@@ -23,8 +23,8 @@ uint8_t* PrependDigestInfo(unsigned int algorithm, uint8_t* digest)
const int digestinfo_size = digestinfo_size_map[algorithm];
const uint8_t* digestinfo = hash_digestinfo_map[algorithm];
uint8_t* p = malloc(digestinfo_size + digest_size);
- Memcpy(p, digestinfo, digestinfo_size);
- Memcpy(p + digestinfo_size, digest, digest_size);
+ memcpy(p, digestinfo, digestinfo_size);
+ memcpy(p + digestinfo_size, digest, digest_size);
return p;
}