opsick
Public Attributes | List of all members
opsick_user_metadata Struct Reference

#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]
 

Detailed Description

Everything about an opsick user except his or her content body.

Member Data Documentation

◆ body_sha512

char opsick_user_metadata::body_sha512[128+1]

The NUL-terminated, hex-encoded string of the user's body, hashed using SHA2-512.

◆ encrypted_private_key_curve448

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).

◆ encrypted_private_key_ed25519

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).

◆ exp_utc

uint64_t opsick_user_metadata::exp_utc

Unix timestamp of when the user account will expire (become read-only).

◆ iat_utc

uint64_t opsick_user_metadata::iat_utc

The Unix timestamp of when the user account was created.

◆ id

uint64_t opsick_user_metadata::id

User ID (unsigned 64-bit integer, DB primary key for the users table).

◆ lastmod_utc

uint64_t opsick_user_metadata::lastmod_utc

Unix timestamp of when the user last posted an update of any form.

◆ public_key_curve448

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).

◆ public_key_ed25519

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).

◆ pw

char opsick_user_metadata::pw[256]

A user's password (or rather, its salted, hashed and encoded representation).

◆ totps

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!


The documentation for this struct was generated from the following file: