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

when i import a key:ERROR: Could not derive shared secret ERROR: Failed Seed Encryption #3398

Open
PunyHunter opened this issue May 22, 2024 · 1 comment

Comments

@PunyHunter
Copy link

No description provided.

@PunyHunter
Copy link
Author

tpm2_createprimary -G ecc_sm2:sm4 -C o -c parent.ctx -g sm3_256
name-alg:
value: sm3_256
raw: 0x12
attributes:
value: fixedtpm|fixedparent|sensitivedataorigin|userwithauth|restricted|decrypt
raw: 0x30072
type:
value: ecc
raw: 0x23
curve-id:
value: SM2 p256
raw: 0x20
kdfa-alg:
value: null
raw: 0x10
kdfa-halg:
value: (null)
raw: 0x0
scheme:
value: null
raw: 0x10
scheme-halg:
value: (null)
raw: 0x0
sym-alg:
value: sm4
raw: 0x13
sym-mode:
value: cfb
raw: 0x43
sym-keybits: 128
x: e5f4271aa045e05e707267289075bc084c90e1bf96e0c2bbfe68bd2eed8b1f91
y: 5ff91549e3282a1fee37b093f5d158c097a86b2389f402f35ae06cf9008eb4a6

tpm2_import -C parent.ctx -G sm4 -i sm4.key -u key.pub -r key.priv -g sm3_256
ERROR: Could not derive shared secret
ERROR: Failed Seed Encryption

ERROR: Unable to run tpm2_import

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

No branches or pull requests

1 participant