mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-19 19:40:56 +00:00
Rename conflictive macros, refactor crypto tests
This commit is contained in:
1 parent
562e82f5ac
commit
61fc480850
7 files changed
+104
-41
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user