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

ESAPI ossl crypto libraries need to add support for SM algorithms. #2148

Open
idesai opened this issue Aug 11, 2021 · 6 comments
Open

ESAPI ossl crypto libraries need to add support for SM algorithms. #2148

idesai opened this issue Aug 11, 2021 · 6 comments
Assignees

Comments

@idesai
Copy link
Member

idesai commented Aug 11, 2021

No description provided.

@williamcroberts
Copy link
Member

What about FAPI when it does software verification with public keys?

@JuergenReppSIT
Copy link
Member

OpenSSL does support the SM algorithms. But it seems to be difficult to test the implementation with a simulator supporting these algorithms. I think the announced switching to the EVP interface in the TPM reference implementation was not implemented:
microsoft/ms-tpm-20-ref#50

@williamcroberts
Copy link
Member

SWTPM has an OpenSSL backend. I think it's configured by default IIRC.

@JuergenReppSIT
Copy link
Member

@williamcroberts I tried to compile libtpms (./configure --with-openssl) with SM3 and SM4 activated but got errors. For "#if SM4_128" there are even syntax errors in the source code.

@JerryDevis
Copy link
Contributor

JerryDevis commented Sep 13, 2021

@williamcroberts I tried to compile libtpms (./configure --with-openssl) with SM3 and SM4 activated but got errors. For "#if SM4_128" there are even syntax errors in the source code.

Libtpms already supports SM4.
If you want to test SM3 and SM4 with libtpms, then this patch might be helpful.
I tried to get tpm2-tss to support sm3 and sm4 as well, but I found that the current CI environment (freebsd-12-2) does not support SM3 and SM4, so the main test failed. you can see this PR #2174.

@JerryDevis
Copy link
Contributor

@AndreasFuchsSIT I tried to get tpm2-tss to support sm3 and sm4 in #2174. Please help me review this PR for me. Thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants