forked from TrueCloudLab/restic
server/key: Rename CreateKey -> CreateMasterKey
This commit is contained in:
parent
9b54fd7bdb
commit
bebb08ee7e
4 changed files with 9 additions and 7 deletions
|
@ -50,9 +50,9 @@ type Key struct {
|
|||
name string
|
||||
}
|
||||
|
||||
// CreateKey initializes a master key in the given backend and encrypts it with
|
||||
// the password.
|
||||
func CreateKey(s *Server, password string) (*Key, error) {
|
||||
// CreateMasterKey creates a new master key in the given backend and encrypts
|
||||
// it with the password.
|
||||
func CreateMasterKey(s *Server, password string) (*Key, error) {
|
||||
return AddKey(s, password, nil)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue