#include <goby/util/thirdparty/jwt-cpp/jwt.h>
|
| ed25519 (const std::string &public_key, const std::string &private_key="", const std::string &public_key_password="", const std::string &private_key_password="") |
|
| eddsa (const std::string &public_key, const std::string &private_key, const std::string &public_key_password, const std::string &private_key_password, std::string name) |
|
std::string | sign (const std::string &data, std::error_code &ec) const |
|
void | verify (const std::string &data, const std::string &signature, std::error_code &ec) const |
|
std::string | name () const |
|
Ed25519 algorithm
https://en.wikipedia.org/wiki/EdDSA#Ed25519
Requires at least OpenSSL 1.1.1.
Definition at line 1953 of file jwt.h.
◆ ed25519()
jwt::algorithm::ed25519::ed25519 |
( |
const std::string & |
public_key, |
|
|
const std::string & |
private_key = "" , |
|
|
const std::string & |
public_key_password = "" , |
|
|
const std::string & |
private_key_password = "" |
|
) |
| |
|
inlineexplicit |
Construct new instance of algorithm
- Parameters
-
public_key | Ed25519 public key in PEM format |
private_key | Ed25519 private key or empty string if not available. If empty, signing will always fail. |
public_key_password | Password to decrypt public key pem. |
private_key_password | Password to decrypt private key pem. |
Definition at line 1964 of file jwt.h.
The documentation for this struct was generated from the following file:
- goby/util/thirdparty/jwt-cpp/jwt.h