Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SM4 encryption and decryption API #16

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

dongbeiouba
Copy link
Member

Add SM4 API, including ECB, CBC, CFB, OFC, CTR, GCM, and CCM mode.
Delete useless C code.
Fix readme.

examples/sm4/sm4 Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executable binary file committed by mistake

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

examples/sm3/sm3 Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executable binary file committed by mistake

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Collaborator

@itomsawyer itomsawyer Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider move sm4.go to crypto/sm4/sm4.go as well as sm4_test.go

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sm4.go is based on ciphers.go,unless I move ciphers.go to crypto directory together.

And in the future we may have aes.go and other symmetric cipher, it's better to reuse ciphers.go.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, refactor ciphers can be done in the future.

Add SM4 API, including ECB, CBC, CFB, OFC, CTR, GCM, and CCM mode.
Delete useless C code.
Fix readme.
Copy link
Collaborator

@itomsawyer itomsawyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@itomsawyer itomsawyer merged commit 6616523 into Tongsuo-Project:main Dec 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants