From 874eaf9734cc10940e08f7b043652449e1e220b5 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 27 Dec 2018 12:03:00 +0100 Subject: Assorted spelling fixes. Mostly detected with the 'codespell' utility, but also includes some manual grammar fixes. --- internal/contentenc/content.go | 2 +- internal/contentenc/intrablock.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/contentenc') diff --git a/internal/contentenc/content.go b/internal/contentenc/content.go index 57ad489..bda3fdc 100644 --- a/internal/contentenc/content.go +++ b/internal/contentenc/content.go @@ -151,7 +151,7 @@ func concatAD(blockNo uint64, fileID []byte) (aData []byte) { // DecryptBlock - Verify and decrypt GCM block // // Corner case: A full-sized block of all-zero ciphertext bytes is translated -// to an all-zero plaintext block, i.e. file hole passtrough. +// to an all-zero plaintext block, i.e. file hole passthrough. func (be *ContentEnc) DecryptBlock(ciphertext []byte, blockNo uint64, fileID []byte) ([]byte, error) { // Empty block? diff --git a/internal/contentenc/intrablock.go b/internal/contentenc/intrablock.go index 3714e37..55b0841 100644 --- a/internal/contentenc/intrablock.go +++ b/internal/contentenc/intrablock.go @@ -5,12 +5,12 @@ type IntraBlock struct { // BlockNo is the block number in the file BlockNo uint64 // Skip is an offset into the block payload - // In forwared mode: block plaintext + // In forward mode: block plaintext // In reverse mode: offset into block ciphertext. Takes the header into // account. Skip uint64 // Length of payload data in this block - // In forwared mode: length of the plaintext + // In forward mode: length of the plaintext // In reverse mode: length of the ciphertext. Takes header and trailer into // account. Length uint64 -- cgit v1.2.3