On Tue May 28, 2024 at 1:31 AM EEST, Jarkko Sakkinen wrote: > > ret = crypto_akcipher_set_pub_key(tfm, data, 3 * x_size + 1); Noticed this mistake i.e. fixed it with "2 * x_size + 1" This is results earlier failure: ecdsa: (tpm2_key_ecdsa_query+0x10d/0x170 <- ecdsa_set_pub_key) arg1=0xffffffea Totally lost with the expected input format after trying out various options. BR, Jarkko