Returns the encrypted message.
Returns the key derivation parameters.
Returns the key derivation method.
StaticcodecTagged-CBOR codec; decode also accepts the untagged form.
StaticlockLock (encrypt) a content key using custom derivation parameters.
The key derivation parameters to use
The secret (password or key material) to derive from
The symmetric key to encrypt
The encrypted key
StaticlockLock (encrypt) a content key using a specific derivation method with defaults.
The key derivation method to use
The secret (password or key material) to derive from
The symmetric key to encrypt
The encrypted key
StaticlockLock (encrypt) a content key with an SSH agent, the asynchronous route
for SSH-agent parameters: SSHAgentParams.lock with options, so the
secret is the comment of the agent identity to use (empty for the only
one) and options.agent signs the salt.
The other methods need no agent and take no nonce, so they have no
asynchronous route: use lockOpt() for them.
SSH-agent parameters; id is set from the secret
The identity's comment as UTF-8
The symmetric key to encrypt
The agent, and the nonce to use instead of a random one
The encrypted key
Check if this uses a password-based key derivation method.
Check if this uses SSH Agent for key derivation.
Such a key is unlocked with unlockWithAgent(), which needs an SshAgent.
Unlock (decrypt) the content key.
The secret (password or key material) used to lock
The decrypted symmetric key
Unlock (decrypt) the content key with an SSH agent: for SSH-agent
parameters SSHAgentParams.unlock with options, where the secret is
the comment of the agent identity to use, or empty for the stored id or
else the first identity; for every other method the same as
unlock(secret), the agent unused.
The identity's comment as UTF-8, or the secret used to lock
The agent that signs the salt
The decrypted symmetric key
Get string representation.
The CBOR tags this type decodes from; the first one is used to encode.
Returns the untagged CBOR encoding. The EncryptedMessage is encoded with its own tag (40002).
The tagged CBOR form.
As a UR, typed by the first tag's name.
Staticfrom
Encrypted key providing secure storage of symmetric keys.
Use
lock()to encrypt a content key with a password or secret, andunlock()to decrypt it. SSH-agent parameters need anSshAgent:lockWithAgent()andunlockWithAgent().