mirror of https://github.com/meshcore-dev/MeshCore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
324 B
18 lines
324 B
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#include <ed_25519.h>
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
|
|
class Ed25519 {
|
|
public:
|
|
static bool verify(const uint8_t* sig, const uint8_t* pub_key, const uint8_t* message, int msg_len) {
|
|
return ed25519_verify(sig, message, msg_len, pub_key) != 0;
|
|
}
|
|
};
|
|
|