Skip to content

Commit 33e3a4e

Browse files
mark-rushakoffbradfitz
authored andcommitted
xtea: comment cleanup
Change-Id: Ibd61a57fbbaa2775adb370a7e91b6dc0f8ca8782 GitHub-Last-Rev: f0111f4a5f941067661fee89e37a95e3503ebdda GitHub-Pull-Request: golang/crypto#36 Reviewed-on: https://go-review.googlesource.com/102035 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent a4acb39 commit 33e3a4e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xtea/block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func encryptBlock(c *Cipher, dst, src []byte) {
5050
uint32ToBlock(v0, v1, dst)
5151
}
5252

53-
// decryptBlock decrypt a single 8 byte block using XTEA.
53+
// decryptBlock decrypts a single 8 byte block using XTEA.
5454
func decryptBlock(c *Cipher, dst, src []byte) {
5555
v0, v1 := blockToUint32(src)
5656

xtea/cipher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import "strconv"
1414
const BlockSize = 8
1515

1616
// A Cipher is an instance of an XTEA cipher using a particular key.
17-
// table contains a series of precalculated values that are used each round.
1817
type Cipher struct {
18+
// table contains a series of precalculated values that are used each round.
1919
table [64]uint32
2020
}
2121

@@ -54,7 +54,7 @@ func (c *Cipher) BlockSize() int { return BlockSize }
5454
// instead, use an encryption mode like CBC (see crypto/cipher/cbc.go).
5555
func (c *Cipher) Encrypt(dst, src []byte) { encryptBlock(c, dst, src) }
5656

57-
// Decrypt decrypts the 8 byte buffer src using the key k and stores the result in dst.
57+
// Decrypt decrypts the 8 byte buffer src using the key and stores the result in dst.
5858
func (c *Cipher) Decrypt(dst, src []byte) { decryptBlock(c, dst, src) }
5959

6060
// initCipher initializes the cipher context by creating a look up table

0 commit comments

Comments
 (0)