mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-05-14 19:38:22 +00:00
Add Get User Private Key Copy
This commit is contained in:
parent
5cf7839a42
commit
14e5fed276
1 changed files with 8 additions and 0 deletions
|
@ -140,3 +140,11 @@ func (c *Client) DecryptMessageWithSessionKey(sessionKey *crypto.SessionKey, cip
|
||||||
|
|
||||||
return res.String(), nil
|
return res.String(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Client) GetUserPrivateKeyCopy() (*crypto.Key, error) {
|
||||||
|
key, err := c.userPrivateKey.Copy()
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("Get Private Key Copy: %w", err)
|
||||||
|
}
|
||||||
|
return key, nil
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue