From 49bbb60a9052fbb95e4cc37fbe62259776259205 Mon Sep 17 00:00:00 2001 From: Emman Date: Fri, 19 Mar 2021 18:17:07 +0800 Subject: [PATCH] MAGIC - correct typo --- sm4/ctr_amd64.go | 2 +- sm4/gcm_amd64.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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