Module tink_core::keyset [−][src]
Expand description
Provide methods to generate, read, write or validate keysets.
Modules
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 a Keyset
protobuf, to limit the exposure
of actual protocol buffers that hold sensitive key material.
json
JsonReader
deserializes a keyset from JSON format.
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.
MemReaderWriter
implements keyset::Reader
and
keyset.Writer
with in-memory storage.
Traits
Reader
knows how to read a Keyset
or an
EncryptedKeyset
from some source. In order to turn a Reader
into a keyset::Handle
for use, callers must use
insecure::new_handle
or Handle::read
(with encryption).
Writer
knows how to write a Keyset
or an
EncryptedKeyset
to some source.
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].