opsick
|
#include <user.h>
Public Attributes | |
uint64_t | id |
char | pw [256] |
char | totps [48+1] |
uint64_t | iat_utc |
uint64_t | exp_utc |
uint64_t | lastmod_utc |
char | body_sha512 [128+1] |
struct cecies_curve25519_key | public_key_ed25519 |
char | encrypted_private_key_ed25519 [256] |
struct cecies_curve448_key | public_key_curve448 |
char | encrypted_private_key_curve448 [256] |
Everything about an opsick user except his or her content body.
char opsick_user_metadata::body_sha512[128+1] |
The NUL-terminated, hex-encoded string of the user's body, hashed using SHA2-512.
char opsick_user_metadata::encrypted_private_key_curve448[256] |
The user's private Ed25519 key (this is encrypted client-side, and is used by the user to decrypt encrypted HTTP responses sent by the server).
char opsick_user_metadata::encrypted_private_key_ed25519[256] |
The user's private Ed25519 key (this is encrypted client-side, and is used by the user to sign requests to the server).
uint64_t opsick_user_metadata::exp_utc |
Unix timestamp of when the user account will expire (become read-only).
uint64_t opsick_user_metadata::iat_utc |
The Unix timestamp of when the user account was created.
uint64_t opsick_user_metadata::id |
User ID (unsigned 64-bit integer, DB primary key for the users table).
uint64_t opsick_user_metadata::lastmod_utc |
Unix timestamp of when the user last posted an update of any form.
struct cecies_curve448_key opsick_user_metadata::public_key_curve448 |
The user's public Curve448 key (the opsick server will use this to encrypt HTTP responses for the user).
struct cecies_curve25519_key opsick_user_metadata::public_key_ed25519 |
The user's public Ed25519 key (the opsick server will use this to verify the user's request signatures).
char opsick_user_metadata::pw[256] |
A user's password (or rather, its salted, hashed and encoded representation).
char opsick_user_metadata::totps[48+1] |
2FA secret that the user will use to generate TOTPs. This will only be presented exactly ONCE on enable!