2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 04:45:15 +00:00

Merge pull request #67 from yath/typo

Fix typo
This commit is contained in:
Alexander Neumann 2014-12-30 20:03:52 +01:00
commit 9354f053bb

2
key.go
View File

@ -365,7 +365,7 @@ func (k *Key) Decrypt(ciphertext []byte) ([]byte, error) {
return k.decrypt(k.master, ciphertext) 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. // must be in the form IV || Ciphertext || HMAC.
func (k *Key) DecryptUser(ciphertext []byte) ([]byte, error) { func (k *Key) DecryptUser(ciphertext []byte) ([]byte, error) {
return k.decrypt(k.user, ciphertext) return k.decrypt(k.user, ciphertext)