Expand description
Provide methods to generate, read, write or validate keysets.
Modules
- insecure
insecure
Module for test code methods to read or write cleartext keyset material.
Structs
BinaryReader
deserializes a keyset from binary proto format.BinaryWriter
serializes a keyset into binary proto format.Handle
provides access to aKeyset
protobuf, to limit the exposure of actual protocol buffers that hold sensitive key material.- JsonReader
json
JsonReader
deserializes a keyset from JSON format. - JsonWriter
json
JsonWriter
serializes a keyset into JSON format. - Manager manages a
Keyset
-proto, with convenience methods that rotate, disable, enable or destroy keys. Note: It is not thread-safe.
Traits
Reader
knows how to read aKeyset
or anEncryptedKeyset
from some source. In order to turn aReader
into akeyset::Handle
for use, callers must useinsecure::new_handle
orHandle::read
(with encryption).
Functions
- Validate the given key set.
- Validate the given key.
- Check whether the given version is valid. The version is valid only if it is the range [0..max_expected].