Documentation ¶
Index ¶
- Constants
- type Conf
- func (c *Conf) GetDecryptKey() common.RawBytes
- func (c *Conf) GetOnRootKey() common.RawBytes
- func (c *Conf) GetSigningKey() common.RawBytes
- func (c *Conf) GetVerifyingKey(ia *addr.ISD_AS) (common.RawBytes, error)
- func (c *Conf) LoadCustomers() (Customers, error)
- func (c *Conf) ReloadCustomers() error
- func (c *Conf) SetVerifyingKey(ia *addr.ISD_AS, ver uint64, newKey, oldKey common.RawBytes) error
- type Customers
Constants ¶
View Source
const ( ErrorAddr = "Unable to load addresses" ErrorKeyConf = "Unable to load KeyConf" ErrorStore = "Unable to load TrustStore" ErrorTopo = "Unable to load topology" ErrorCustomers = "Unable to load Customers" )
View Source
const ( KeyChanged = "Verifying key has changed in the meantime" NotACustomer = "ISD-AS not in custommer mapping" CustomersDir = "customers" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { // Topo contains the names of all local infrastructure elements, a map // of interface IDs to routers, and the actual topology. Topo *topology.Topo // BindAddr is the local bind address. BindAddr *snet.Addr // PublicAddr is the public address. PublicAddr *snet.Addr // Store is the trust store. Store *trust.Store // CacheDir is the cache directory. CacheDir string // ConfDir is the configuration directory. ConfDir string // StateDir is the state directory. StateDir string // contains filtered or unexported fields }
func (*Conf) GetDecryptKey ¶
GetDecryptKey returns the decryption key of the current key configuration.
func (*Conf) GetOnRootKey ¶
GetOnRootKey returns the online root key of the current key configuration.
func (*Conf) GetSigningKey ¶
GetSigningKey returns the signing key of the current key configuration.
func (*Conf) GetVerifyingKey ¶
GetVerifyingKey returns the verifying key from the requested AS and nil if it is in the mapping. Otherwise, nil and an error.
func (*Conf) LoadCustomers ¶
LoadCustomers populates the mapping from assigned non-core ASes to their respective verifying key.
func (*Conf) ReloadCustomers ¶
ReloadCustomers reloads the mapping from customer to verifying key.
Click to show internal directories.
Click to hide internal directories.