Skip to content

Commit c270a8e

Browse files
committed
fix comment
1 parent 916bdf3 commit c270a8e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

aes.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ func (c *aesCipher) BlockSize() int {
5757

5858
func (c *aesCipher) Encrypt(dst, src []byte) {
5959
if err := c.encrypt(dst, src); err != nil {
60-
// Upstream expects that the panic message starts with "crypto/aes: ".
60+
// crypto/aes expects that the panic message starts with "crypto/aes: ".
6161
panic("crypto/aes: " + err.Error())
6262
}
6363
}
6464

6565
func (c *aesCipher) Decrypt(dst, src []byte) {
6666
if err := c.decrypt(dst, src); err != nil {
67-
// Upstream expects that the panic message starts with "crypto/aes: ".
67+
// crypto/aes expects that the panic message starts with "crypto/aes: ".
6868
panic("crypto/aes: " + err.Error())
6969
}
7070
}

des.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ func (c *desCipher) BlockSize() int {
7676

7777
func (c *desCipher) Encrypt(dst, src []byte) {
7878
if err := c.encrypt(dst, src); err != nil {
79-
// Upstream expects that the panic message starts with "crypto/des: ".
79+
// crypto/des expects that the panic message starts with "crypto/des: ".
8080
panic("crypto/des: " + err.Error())
8181
}
8282
}
8383

8484
func (c *desCipher) Decrypt(dst, src []byte) {
8585
if err := c.decrypt(dst, src); err != nil {
86-
// Upstream expects that the panic message starts with "crypto/des: ".
86+
// crypto/des expects that the panic message starts with "crypto/des: ".
8787
panic("crypto/des: " + err.Error())
8888
}
8989
}

0 commit comments

Comments
 (0)