Module keyset

Module keyset 

Source
Expand description

Provide methods to generate, read, write or validate keysets.

Modules§

insecureinsecure
Module for test code methods to read or write cleartext keyset material.

Structs§

BinaryReader
BinaryReader deserializes a keyset from binary proto format.
BinaryWriter
BinaryWriter serializes a keyset into binary proto format.
Handle
Handle provides access to a Keyset protobuf, to limit the exposure of actual protocol buffers that hold sensitive key material.
JsonReaderjson
JsonReader deserializes a keyset from JSON format.
JsonWriterjson
JsonWriter serializes a keyset into JSON format.
Manager
Manager manages a Keyset-proto, with convenience methods that rotate, disable, enable or destroy keys. Note: It is not thread-safe.
MemReaderWriter
MemReaderWriter implements keyset::Reader and keyset.Writer with in-memory storage.

Traits§

Reader
Reader knows how to read a Keyset or an EncryptedKeyset from some source.
Writer
Writer knows how to write a Keyset or an EncryptedKeyset to some source.

Functions§

validate
Validate the given key set.
validate_key
Validate the given key.
validate_key_version
Check whether the given version is valid. The version is valid only if it is the range [0..max_expected].