mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Add secp384r1, fix memory leaks in #3566
This commit is contained in:
1 parent
26c48459a5
commit
5e4c5a4d13
6 files changed
+245
-40
No files matched your search
+6
-1
@@ -1995,7 +1995,6 @@ int mg_aes_gcm_decrypt(unsigned char *output, const unsigned char *input,
|
||||
|
||||
|
||||
|
||||
#define MG_UECC_SUPPORTS_secp256r1 1
|
||||
/* Copyright 2014, Kenneth MacKay. Licensed under the BSD 2-clause license. */
|
||||
|
||||
#ifndef _UECC_H_
|
||||
@@ -2066,6 +2065,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. */
|
||||
@@ -2095,6 +2097,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
|
||||
|
||||
Reference in new issue
Block a user