aboutsummaryrefslogtreecommitdiff
path: root/internal/contentenc
diff options
context:
space:
mode:
authorSebastian Lackner2018-12-27 12:03:00 +0100
committerrfjakob2018-12-27 15:19:55 +0100
commit874eaf9734cc10940e08f7b043652449e1e220b5 (patch)
tree1d58848741a2a78426b412fab51b22ee997d9f12 /internal/contentenc
parent4c2ff26457471cd36b25c29fb3f982b27002ce3c (diff)
Assorted spelling fixes.
Mostly detected with the 'codespell' utility, but also includes some manual grammar fixes.
Diffstat (limited to 'internal/contentenc')
-rw-r--r--internal/contentenc/content.go2
-rw-r--r--internal/contentenc/intrablock.go4
2 files changed, 3 insertions, 3 deletions
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