aboutsummaryrefslogtreecommitdiff
path: root/internal/siv_aead
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-09-17 11:42:46 +0200
committerJakob Unterwurzacher2017-09-17 11:42:46 +0200
commit0072a96f20c99bf386d8e3f63741def5a3945018 (patch)
treedb2c08cae6ef29d8053acec3c527db3e5ca5725b /internal/siv_aead
parent885fdcabdacb2d53829e7f96f4c600df0a3e282d (diff)
siv_aead: fix trivial typo in comment
Diffstat (limited to 'internal/siv_aead')
-rw-r--r--internal/siv_aead/siv_aead.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/siv_aead/siv_aead.go b/internal/siv_aead/siv_aead.go
index 9b85fde..3cb42ab 100644
--- a/internal/siv_aead/siv_aead.go
+++ b/internal/siv_aead/siv_aead.go
@@ -47,7 +47,7 @@ func (s *sivAead) Overhead() int {
return 16
}
-// Seal encrypts "in" using "nonce" and "authData" and append the result to "dst"
+// Seal encrypts "in" using "nonce" and "authData" and appends the result to "dst"
func (s *sivAead) Seal(dst, nonce, plaintext, authData []byte) []byte {
if len(nonce) != 16 {
// SIV supports any nonce size, but in gocryptfs we exclusively use 16.
@@ -65,7 +65,7 @@ func (s *sivAead) Seal(dst, nonce, plaintext, authData []byte) []byte {
return out
}
-// Open decrypts "in" using "nonce" and "authData" and append the result to "dst"
+// Open decrypts "in" using "nonce" and "authData" and appends the result to "dst"
func (s *sivAead) Open(dst, nonce, ciphertext, authData []byte) ([]byte, error) {
if len(nonce) != 16 {
// SIV supports any nonce size, but in gocryptfs we exclusively use 16.