-
For example ENGINE* engine = ENGINE_by_id("tpm2tss");
EVP_PKEY* ret = NULL;
if (engine != NULL)
{
if (ENGINE_init(engine))
{
ret = ENGINE_load_private_key(engine, "0x81000007", NULL, NULL)
ENGINE_finish(engine);
}
ENGINE_free(engine);
}
// Is using `ret` here safe? I'm trying to write a function which ideally takes engine name and key name and returns |
Beta Was this translation helpful? Give feedback.
Answered by
t8m
Jul 11, 2023
Replies: 1 comment
-
Yes, this is correct. You can use the returned pkey after these calls. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
t8m
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, this is correct. You can use the returned pkey after these calls.