_pcp_pubkey_t Struct Reference

PCP public key structure. More...

#include <structs.h>

Public Attributes

byte masterpub [32]
 ED25519 master public key signing key. More...
 
byte sigpub [32]
 ED25519 public signing key. More...
 
byte pub [32]
 Curve25519 encryption public key. More...
 
byte edpub [32]
 ED25519 public signing key (FIXME: huh? 2 of them???) More...
 
char owner [255]
 the key owner, string More...
 
char mail [255]
 mail address of the owner, string More...
 
char id [17]
 key-id, used internally only, jenhash of public keys More...
 
uint8_t type
 key type: MASTER_SECRET or SECRET More...
 
uint64_t ctime
 creation time, epoch More...
 
uint32_t version
 key version More...
 
uint32_t serial
 serial number of the key, randomly generated More...
 
uint8_t valid
 1 if import signature verified, 0 if not More...
 
byte signature [crypto_generichash_BYTES_MAX+crypto_sign_BYTES]
 raw binary blob of pubkey export signature More...
 

Detailed Description

PCP public key structure.

This structure contains a subset of the pcp_key_t structure without the secret and nonce fields.

Definition at line 101 of file structs.h.

Member Data Documentation

uint64_t _pcp_pubkey_t::ctime

creation time, epoch

Definition at line 110 of file structs.h.

byte _pcp_pubkey_t::edpub[32]

ED25519 public signing key (FIXME: huh? 2 of them???)

Definition at line 105 of file structs.h.

char _pcp_pubkey_t::id[17]

key-id, used internally only, jenhash of public keys

Definition at line 108 of file structs.h.

char _pcp_pubkey_t::mail[255]

mail address of the owner, string

Definition at line 107 of file structs.h.

byte _pcp_pubkey_t::masterpub[32]

ED25519 master public key signing key.

Definition at line 102 of file structs.h.

char _pcp_pubkey_t::owner[255]

the key owner, string

Definition at line 106 of file structs.h.

byte _pcp_pubkey_t::pub[32]

Curve25519 encryption public key.

Definition at line 104 of file structs.h.

uint32_t _pcp_pubkey_t::serial

serial number of the key, randomly generated

Definition at line 112 of file structs.h.

byte _pcp_pubkey_t::signature[crypto_generichash_BYTES_MAX+crypto_sign_BYTES]

raw binary blob of pubkey export signature

Definition at line 114 of file structs.h.

byte _pcp_pubkey_t::sigpub[32]

ED25519 public signing key.

Definition at line 103 of file structs.h.

uint8_t _pcp_pubkey_t::type

key type: MASTER_SECRET or SECRET

Definition at line 109 of file structs.h.

uint8_t _pcp_pubkey_t::valid

1 if import signature verified, 0 if not

Definition at line 113 of file structs.h.

uint32_t _pcp_pubkey_t::version

key version

Definition at line 111 of file structs.h.


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