Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateExchangeKey ¶
GenerateExchangeKey generates an exchange key for Tang
func GenerateVerifyKey ¶
GenerateVerifyKey generates a verify/sign key for Tang
func ReverseTangHandshake ¶
ReverseTangHandshake performs a key exchange with "remote" clevis client
Types ¶
type KeySet ¶
type KeySet struct { DefaultAdvertisement []byte // contains filtered or unexported fields }
KeySet represents a set of all keys handled by Tang
func ReadKeys ¶
ReadKeys reads all key files and as wells as keys from the given directories and makes a KeySet instance out of it. Any key file that starts from "." (dot) is marked as non-advertised. In case of directory scanning only files with *.jwk suffix are parsed as keys, other files are ignored
func (*KeySet) AppendKey ¶
AppendKey appends the given key to the KeySet. Advertisements are not recalculated.
func (*KeySet) RecomputeAdvertisements ¶
RecomputeAdvertisements recomputes advertisement files for the keys and default for the KeySet itself
type NativeServer ¶
NativeServer is a server implementation that redirects requests to the native "tangd" binary. This code is useful for tests or when one needs a wrapper around tangd binary.
func NewNativeServer ¶
func NewNativeServer(keysDir string, port int) (*NativeServer, error)
NewNativeServer creates instance of a native Tang server
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
passive-tang
Module
|
|
tang-create-key
Module
|
|
tang-generate-advertisement
Module
|
|
tangd
Module
|