MAGIC - correct typo

This commit is contained in:
Emman 2021-03-19 18:17:07 +08:00
parent 88e456e9a8
commit 49bbb60a90
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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