Add secp384r1, fix memory leaks in #3566

This commit is contained in:
cpq authored and Sergio R. Caprile committed 2026-05-28 12:27:50 -03:00
1 parent 26c48459a5
commit 5e4c5a4d13
6 files changed
+245 -40

No files matched your search

+6 -1
View File
@@ -1,7 +1,6 @@
#pragma once
#include "arch.h"
#define MG_UECC_SUPPORTS_secp256r1 1
/* Copyright 2014, Kenneth MacKay. Licensed under the BSD 2-clause license. */
#ifndef _UECC_H_
@@ -72,6 +71,9 @@ endianness. */
#ifndef MG_UECC_SUPPORTS_secp256k1
#define MG_UECC_SUPPORTS_secp256k1 0
#endif
#ifndef MG_UECC_SUPPORTS_secp384r1
#define MG_UECC_SUPPORTS_secp384r1 1
#endif
/* Specifies whether compressed point format is supported.
Set to 0 to disable point compression/decompression functions. */
@@ -101,6 +103,9 @@ MG_UECC_Curve mg_uecc_secp256r1(void);
#if MG_UECC_SUPPORTS_secp256k1
MG_UECC_Curve mg_uecc_secp256k1(void);
#endif
#if MG_UECC_SUPPORTS_secp384r1
MG_UECC_Curve mg_uecc_secp384r1(void);
#endif
/* MG_UECC_RNG_Function type
The RNG function should fill 'size' random bytes into 'dest'. It should return 1