Skip to content

Commit

Permalink
MAGIC - correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Emman committed Mar 19, 2021
1 parent 88e456e commit 49bbb60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sm4/ctr_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion sm4/gcm_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49bbb60

Please sign in to comment.