From c270a8ea73a75ca39e44ab1f327c3bfa2fa8ff72 Mon Sep 17 00:00:00 2001 From: qmuntal Date: Fri, 22 Sep 2023 14:37:24 +0200 Subject: [PATCH] fix comment --- aes.go | 4 ++-- des.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aes.go b/aes.go index c097ef8f..1fc11f00 100644 --- a/aes.go +++ b/aes.go @@ -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()) } } diff --git a/des.go b/des.go index e0a7c1a2..98b15d2d 100644 --- a/des.go +++ b/des.go @@ -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()) } }