siv_aead: fix trivial typo in comment

This commit is contained in:
Jakob Unterwurzacher 2017-09-17 11:42:46 +02:00
parent 885fdcabda
commit 0072a96f20

View File

@ -47,7 +47,7 @@ func (s *sivAead) Overhead() int {
return 16 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 { func (s *sivAead) Seal(dst, nonce, plaintext, authData []byte) []byte {
if len(nonce) != 16 { if len(nonce) != 16 {
// SIV supports any nonce size, but in gocryptfs we exclusively use 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 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) { func (s *sivAead) Open(dst, nonce, ciphertext, authData []byte) ([]byte, error) {
if len(nonce) != 16 { if len(nonce) != 16 {
// SIV supports any nonce size, but in gocryptfs we exclusively use 16. // SIV supports any nonce size, but in gocryptfs we exclusively use 16.