Rename conflictive macros, refactor crypto tests

This commit is contained in:
Sergio R. Caprile committed 2025-03-04 11:55:57 -03:00
1 parent 562e82f5ac
commit 61fc480850
7 files changed
+104 -41

No files matched your search

+5
View File
@@ -4,9 +4,12 @@
* Author: Mike Hamburg
* License: MIT License
*/
#include "tls.h"
#include "tls_x25519.h"
#include "util.h"
#if MG_TLS == MG_TLS_BUILTIN
const uint8_t X25519_BASE_POINT[X25519_BYTES] = {9};
#define X25519_WBITS 32
@@ -255,3 +258,5 @@ int mg_tls_x25519(uint8_t out[X25519_BYTES], const uint8_t scalar[X25519_BYTES],
}
return ret;
}
#endif