Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Sep 22, 2023
1 parent 916bdf3 commit c270a8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aes.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ func (c *aesCipher) BlockSize() int {

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

func (c *aesCipher) Decrypt(dst, src []byte) {
if err := c.decrypt(dst, src); err != nil {
// Upstream expects that the panic message starts with "crypto/aes: ".
// crypto/aes expects that the panic message starts with "crypto/aes: ".
panic("crypto/aes: " + err.Error())
}
}
Expand Down
4 changes: 2 additions & 2 deletions des.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ func (c *desCipher) BlockSize() int {

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

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

0 comments on commit c270a8e

Please sign in to comment.