diff --git a/sm4/ctr_amd64.go b/sm4/ctr_amd64.go index ae30413..e0dad97 100644 --- a/sm4/ctr_amd64.go +++ b/sm4/ctr_amd64.go @@ -14,7 +14,7 @@ type ctr struct { const streamBufferSize = 512 -// NewCTR returns a Stream which encrypts/decrypts using the AES block +// NewCTR returns a Stream which encrypts/decrypts using the SM4 block // cipher in counter mode. The length of iv must be the same as BlockSize. func (c *sm4CipherAsm) NewCTR(iv []byte) cipher.Stream { if len(iv) != BlockSize { diff --git a/sm4/gcm_amd64.go b/sm4/gcm_amd64.go index c718e92..3b216c5 100644 --- a/sm4/gcm_amd64.go +++ b/sm4/gcm_amd64.go @@ -10,7 +10,7 @@ import ( // Assert that sm4CipherAsm implements the gcmAble interface. var _ gcmAble = (*sm4CipherAsm)(nil) -// NewGCM returns the AES cipher wrapped in Galois Counter Mode. This is only +// NewGCM returns the SM4 cipher wrapped in Galois Counter Mode. This is only // called by crypto/cipher.NewGCM via the gcmAble interface. func (c *sm4CipherAsm) NewGCM(nonceSize, tagSize int) (cipher.AEAD, error) { var key [gcmBlockSize]byte