Skip to content

Feature: Provide sm2 algorithm support#278

Open
bangcheng wants to merge 1 commit into
tpm2-software:masterfrom
bangcheng:master
Open

Feature: Provide sm2 algorithm support#278
bangcheng wants to merge 1 commit into
tpm2-software:masterfrom
bangcheng:master

Conversation

@bangcheng

Copy link
Copy Markdown

This code is to enable tpm2-tss-engine to support the SMx algorithm. (#277)

@bangcheng bangcheng changed the title Provide sm2 algorithm support Feature: Provide sm2 algorithm support Oct 9, 2023
This code is to enable tpm2-tss-engine to support the SM2 algorithm.

Signed-off-by: bangcheng <bangwangnj@163.com>
@bangcheng bangcheng force-pushed the master branch 2 times, most recently from fedf5f9 to e33231f Compare October 9, 2023 14:56

@kalvdans kalvdans left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

looks neat to me. Haven't tested it though.

Comment thread src/tpm2-tss-engine-ecc.c
// call pkey_sm2_sign_default
return pkey_sm2_sign_default(ctx, sig, siglen, tbs, tbslen);
}
else {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

no need for an else clause here, as we already returned if taken the if clause.

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