Skip to main content

Crate libsalus

Crate libsalus 

Source
Expand description

Salus - A secure secret store in Rust

Structs§

Init
The init message to send to the daemon
SearchQuery
A predictive key-name search request.
SetInfo
Summary of a single enrolled set, returned by AgentAction::Status.
Share
A share message to send to the daemon
Shares
A share message to send to the daemon
SsssConfig
Configuration used to drive the gen_shares function.
Store
A store message to send to the daemon

Enums§

Action
A message to send to the daemon
AgentAction
A request sent from the client to the salus-agent.
AgentResponse
A response sent from the salus-agent back to the client.
Response
A response from the daemon
UnlockTimeout
How long the daemon should keep the reconstructed key in memory after a successful unlock.

Constants§

MAX_MESSAGE_SIZE
Maximum size, in bytes, of a single encoded protocol message (1 MiB).
MAX_UNLOCK_SECONDS
The maximum number of seconds the daemon will hold an unlocked key (24 h).

Functions§

agent_socket_name
Get the socket name used to talk to the salus-agent.
decode
Decode a protocol message using the shared, size-bounded wire configuration.
encode
Encode a protocol message using the shared, size-bounded wire configuration.
fuzzy_rank
Fuzzy-rank candidates against query, best match first.
gen_shares
Generate a new key and split it into shares using Shamir’s Secret Sharing Scheme.
socket_name
Get the socket name used for daemon interprocess communication.
unlock_key
Unlock the key from the given shares using Shamir’s Secret Sharing Scheme.