Opsick key handling.
More...
#include <ed25519.h>
#include <cecies/keygen.h>
Go to the source code of this file.
Opsick key handling.
- Author
- Raphael Beck
◆ opsick_keys_free()
void opsick_keys_free |
( |
| ) |
|
Free opsick keys and turn off keygen.
◆ opsick_keys_get_curve448_keypair()
void opsick_keys_get_curve448_keypair |
( |
struct cecies_curve448_keypair * |
out | ) |
|
Gets the currently used opsick encryption keypair (used for communicating with the server over non-secure protocols (e.g. plain HTTP)).
- Parameters
-
out | Where to write the keypair into. |
◆ opsick_keys_get_ed25519_keypair()
Gets the currently used opsick signing keypair (used for signing/verifying opsick HTTP responses).
- Parameters
-
out | Where to write the keypair into. |
◆ opsick_keys_get_public_keys_json()
void opsick_keys_get_public_keys_json |
( |
char * |
out, |
|
|
size_t * |
outlen |
|
) |
| |
Get readily formatted JSON containing Opsick server public keys.
- Parameters
-
out | A writable output char buffer that is at least 256B big! |
outlen | Where to write the written output json string's length into. |
◆ opsick_keys_init()
void opsick_keys_init |
( |
| ) |
|
Initialize opsick keygen.