From 5131fc4353983736fa939233d2388c24bd2118d6 Mon Sep 17 00:00:00 2001 From: Felipe Ventura <37639194+feventura@users.noreply.github.com> Date: Thu, 7 Mar 2024 16:56:07 -0500 Subject: [PATCH] Update oqsprov/oqs_sig.c Fix typo Co-authored-by: thomas <108470890+thb-sb@users.noreply.github.com> --- oqsprov/oqs_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oqsprov/oqs_sig.c b/oqsprov/oqs_sig.c index e5f76a1f..1ee962ca 100644 --- a/oqsprov/oqs_sig.c +++ b/oqsprov/oqs_sig.c @@ -437,7 +437,7 @@ static int oqs_sig_sign(void *vpoqs_sigctx, unsigned char *sig, size_t *siglen, } final_tbs = OPENSSL_malloc(final_tbslen); composite_prefix_conversion(final_tbs, oid_prefix); - memcpy(final_tbs + COMPOSITE_OID_PREFIRX_LEN / 2, tbs_hash, + memcpy(final_tbs + COMPOSITE_OID_PREFIX_LEN / 2, tbs_hash, final_tbslen - COMPOSITE_OID_PREFIRX_LEN / 2); OPENSSL_free(tbs_hash);