libpcp  0.2.1
Public Attributes | List of all members
_pcp_pubkey_t Struct Reference

PCP public key structure. More...

#include <key.h>

Public Attributes

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

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 122 of file key.h.

Member Data Documentation

uint64_t _pcp_pubkey_t::ctime

creation time, epoch

Definition at line 131 of file key.h.

byte _pcp_pubkey_t::edpub[32]

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

Definition at line 126 of file key.h.

char _pcp_pubkey_t::id[17]

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

Definition at line 129 of file key.h.

char _pcp_pubkey_t::mail[255]

mail address of the owner, string

Definition at line 128 of file key.h.

byte _pcp_pubkey_t::masterpub[32]

ED25519 master public key signing key.

Definition at line 123 of file key.h.

char _pcp_pubkey_t::owner[255]

the key owner, string

Definition at line 127 of file key.h.

byte _pcp_pubkey_t::pub[32]

Curve25519 encryption public key.

Definition at line 125 of file key.h.

uint32_t _pcp_pubkey_t::serial

serial number of the key, randomly generated

Definition at line 133 of file key.h.

byte _pcp_pubkey_t::signature[crypto_generichash_BYTES_MAX+crypto_sign_BYTES]

raw binary blob of pubkey export signature

Definition at line 135 of file key.h.

byte _pcp_pubkey_t::sigpub[32]

ED25519 public signing key.

Definition at line 124 of file key.h.

uint8_t _pcp_pubkey_t::type

key type: MASTER_SECRET or SECRET

Definition at line 130 of file key.h.

uint8_t _pcp_pubkey_t::valid

1 if import signature verified, 0 if not

Definition at line 134 of file key.h.

uint32_t _pcp_pubkey_t::version

key version

Definition at line 132 of file key.h.


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