Merge branch 'fix/g09' into fix/integrated
This commit is contained in:
@@ -413,9 +413,14 @@ func (c *Client) AssertStepUp(ctx context.Context) error {
|
||||
}
|
||||
|
||||
// StoreEncryptionKey wraps the daemon's at-rest key under secret, the 32-byte
|
||||
// WebAuthn PRF output for the freshly enrolled credential.
|
||||
func (c *Client) StoreEncryptionKey(ctx context.Context, secret []byte) error {
|
||||
return c.call(ctx, MethodStoreEncryptionKey, storeEncryptionKeyReq{Secret: secret}, nil)
|
||||
// WebAuthn PRF output for the asserted credential.
|
||||
//
|
||||
// explicit marks an operator-requested write. False means "write it only if
|
||||
// there is nothing there yet": a blob already on disk is left alone, because
|
||||
// rewriting it on every assertion is how an attacker-chosen PRF value, or a
|
||||
// second authenticator, replaces the one thing that opens the database.
|
||||
func (c *Client) StoreEncryptionKey(ctx context.Context, secret []byte, explicit bool) error {
|
||||
return c.call(ctx, MethodStoreEncryptionKey, storeEncryptionKeyReq{Secret: secret, Explicit: explicit}, nil)
|
||||
}
|
||||
|
||||
// Unlock hands the daemon the PRF secret so it can unwrap its at-rest key and
|
||||
|
||||
Reference in New Issue
Block a user