forked from TrueCloudLab/restic
commit
9354f053bb
1 changed files with 1 additions and 1 deletions
2
key.go
2
key.go
|
@ -365,7 +365,7 @@ func (k *Key) Decrypt(ciphertext []byte) ([]byte, error) {
|
|||
return k.decrypt(k.master, ciphertext)
|
||||
}
|
||||
|
||||
// DecryptUser verifes and decrypts the ciphertext with the master key. Ciphertext
|
||||
// DecryptUser verifes and decrypts the ciphertext with the user key. Ciphertext
|
||||
// must be in the form IV || Ciphertext || HMAC.
|
||||
func (k *Key) DecryptUser(ciphertext []byte) ([]byte, error) {
|
||||
return k.decrypt(k.user, ciphertext)
|
||||
|
|
Loading…
Reference in a new issue