mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-12 03:56:17 +08:00
MAGIC - correct typo
This commit is contained in:
parent
88e456e9a8
commit
49bbb60a90
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user