1
0
mirror of https://github.com/restic/restic.git synced 2024-06-25 07:47:44 +02:00

Merge branch 'master' of github.com:restic/restic

This commit is contained in:
Alexander Neumann 2014-12-30 20:05:25 +01:00
commit aa8f1c680e

2
key.go
View File

@ -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)