mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 04:36:19 +08:00
Update comments
This commit is contained in:
parent
eb56eac42a
commit
2dc8dae6bd
@ -23,6 +23,7 @@ type ZUC128Mac struct {
|
||||
}
|
||||
|
||||
// NewHash create hash for zuc-128 eia, with arguments key and iv.
|
||||
// Both key/iv size are 16 in bytes.
|
||||
func NewHash(key, iv []byte) (*ZUC128Mac, error) {
|
||||
k := len(key)
|
||||
ivLen := len(iv)
|
||||
|
@ -16,7 +16,8 @@ type ZUC256Mac struct {
|
||||
len uint64
|
||||
}
|
||||
|
||||
// NewHash create hash for zuc-128 eia, with arguments key, iv and tagSize.
|
||||
// NewHash256 create hash for zuc-256 eia, with arguments key, iv and tagSize.
|
||||
// Key size is 32 in bytes, iv size is 23 in bytes, tagSize supports 4/8/16 in bytes.
|
||||
// The larger the tag size, the worse the performance.
|
||||
func NewHash256(key, iv []byte, tagSize int) (*ZUC256Mac, error) {
|
||||
k := len(key)
|
||||
|
Loading…
x
Reference in New Issue
Block a user