Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
ZUC-256 Stream Cipher
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroalbanese authored Jul 18, 2022
1 parent b8c47eb commit af8b409
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/gmsmtk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func main() {
os.Exit(0)
}

if *crypt == "eea256" {
if *crypt == "eea256" || *crypt == "zuc256" {
var keyHex string
var keyRaw []byte
if *pbkdf {
Expand Down Expand Up @@ -451,7 +451,7 @@ func main() {
os.Exit(0)
}

if *crypt == "eea128" {
if *crypt == "eea128" || *crypt == "eea3" || *crypt == "zuc128" {
var keyHex string
var keyRaw []byte
if *pbkdf {
Expand Down Expand Up @@ -504,7 +504,7 @@ func main() {
os.Exit(0)
}

if *mac == "eia256" {
if *mac == "eia256" || *crypt == "zuc256" {
var keyHex string
var keyRaw []byte
if *pbkdf {
Expand Down Expand Up @@ -558,7 +558,7 @@ func main() {
os.Exit(0)
}

if *mac == "eia128" {
if *mac == "eia128" || *crypt == "eia3" || *crypt == "zuc128" {
var keyHex string
var keyRaw []byte
if *pbkdf {
Expand Down

0 comments on commit af8b409

Please sign in to comment.