]> Cypherpunks repositories - gostls13.git/commitdiff
crypto: update incorrect references to Cipher interface; should be Block.
authorRob Pike <r@golang.org>
Wed, 9 Nov 2011 22:22:44 +0000 (14:22 -0800)
committerRob Pike <r@golang.org>
Wed, 9 Nov 2011 22:22:44 +0000 (14:22 -0800)
R=gri, rsc, r
CC=golang-dev
https://golang.org/cl/5372050

doc/go_spec.html
src/pkg/crypto/aes/cipher.go
src/pkg/crypto/blowfish/cipher.go
src/pkg/crypto/xtea/cipher.go

index ce03a49c917e3de7949946395f701420e9bb068b..4426ea206fbe9562d650e626a8149b0a21852aeb 100644 (file)
@@ -1,5 +1,5 @@
 <!-- title The Go Programming Language Specification -->
-<!-- subtitle Version of November 1, 2011 -->
+<!-- subtitle Version of November 9, 2011 -->
 
 <!--
 TODO
@@ -1688,7 +1688,7 @@ type TreeNode struct {
        value *Comparable
 }
 
-type Cipher interface {
+type Block interface {
        BlockSize() int
        Encrypt(src, dst []byte)
        Decrypt(src, dst []byte)
@@ -1720,8 +1720,8 @@ type PrintableMutex struct {
        Mutex
 }
 
-// MyCipher is an interface type that has the same method set as Cipher.
-type MyCipher Cipher
+// MyBlock is an interface type that has the same method set as Block.
+type MyBlock Block
 </pre>
 
 <p>
index 5ad75eccb502eada84f060a6fb770e8d05731785..28752e73613cd18d33d3ec7340b0cf7bde597214 100644 (file)
@@ -41,7 +41,7 @@ func NewCipher(key []byte) (*Cipher, error) {
 }
 
 // BlockSize returns the AES block size, 16 bytes.
-// It is necessary to satisfy the Cipher interface in the
+// It is necessary to satisfy the Block interface in the
 // package "crypto/cipher".
 func (c *Cipher) BlockSize() int { return BlockSize }
 
index a5d56d2ebae8d63865e1b7600e0b81bfdcf02967..94e10f0e267cce2ad76ba9f80c85cb4300208eed 100644 (file)
@@ -54,7 +54,7 @@ func NewSaltedCipher(key, salt []byte) (*Cipher, error) {
 }
 
 // BlockSize returns the Blowfish block size, 8 bytes.
-// It is necessary to satisfy the Cipher interface in the
+// It is necessary to satisfy the Block interface in the
 // package "crypto/cipher".
 func (c *Cipher) BlockSize() int { return BlockSize }
 
index 64d933c2b67eef7a3f58b3d3a4f08968b3da0dc6..3ed05814a3b76163ee0f8774479b46a7d7e5964b 100644 (file)
@@ -44,7 +44,7 @@ func NewCipher(key []byte) (*Cipher, error) {
 }
 
 // BlockSize returns the XTEA block size, 8 bytes.
-// It is necessary to satisfy the Cipher interface in the
+// It is necessary to satisfy the Block interface in the
 // package "crypto/cipher".
 func (c *Cipher) BlockSize() int { return BlockSize }