Encrypts the subject with a fresh content key and adds a hasSecret
assertion holding that key locked by secret via method (the
reference's lock_subject).
KeyDerivationMethod.SSHAgent needs an agent, which this synchronous
function does not take: it throws Components with components' message,
where the reference connects to SSH_AUTH_SOCK itself. Use
lockSubjectWith.
EnvelopeError InvalidParameter for a value outside
KeyDerivationMethod; Components (components error: <message>,
cause the ComponentsError) when components cannot lock the key
Encrypts the subject with a fresh content key and adds a
hasSecretassertion holding that key locked bysecretviamethod(the reference'slock_subject).KeyDerivationMethod.SSHAgentneeds an agent, which this synchronous function does not take: it throwsComponentswith components' message, where the reference connects toSSH_AUTH_SOCKitself. Use lockSubjectWith.