unbreak stuff after last commit

This commit is contained in:
Sergio R. Caprile committed 2026-01-20 18:40:36 -03:00
1 parent d5e5b3397d
commit c10a88b64b
3 files changed
+30 -30

No files matched your search

+7 -7
View File
@@ -1603,12 +1603,12 @@ int mg_rsa_crt_sign(const uint8_t *em, size_t em_len,
return -1;
}
em_bi = bi_import(ctx, em, em_len);
dP_bi = bi_import(ctx, dP, dP_len);
dQ_bi = bi_import(ctx, dQ, dQ_len);
p_bi = bi_import(ctx, p, p_len);
q_bi = bi_import(ctx, q, q_len);
qInv_bi = bi_import(ctx, qInv, qInv_len);
em_bi = bi_import(ctx, em, (int) em_len);
dP_bi = bi_import(ctx, dP, (int) dP_len);
dQ_bi = bi_import(ctx, dQ, (int) dQ_len);
p_bi = bi_import(ctx, p, (int) p_len);
q_bi = bi_import(ctx, q, (int) q_len);
qInv_bi = bi_import(ctx, qInv, (int) qInv_len);
if (em_bi == NULL || dP_bi == NULL || dQ_bi == NULL ||
p_bi == NULL || q_bi == NULL || qInv_bi == NULL) {
@@ -1622,7 +1622,7 @@ int mg_rsa_crt_sign(const uint8_t *em, size_t em_len,
if (result_bi == NULL) {
goto cleanup;
}
bi_export(ctx, result_bi, signature, sig_len);
bi_export(ctx, result_bi, signature, (int) sig_len);
ret = 0; // Success!
cleanup:
bi_free_mod(ctx, BIGINT_P_OFFSET); // cloned p_bi stored in mod context