intel / vtpm-td

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need to cleanup sensitive key data after using

liuw1 opened this issue · comments

let pkcs8 = generate_ecdsa_keypairs();

let key_pair = EcdsaKeyPair::from_pkcs8(
&ring::signature::ECDSA_P384_SHA384_ASN1_SIGNING,
pkcs8.as_ref(),
);

let key_pair = ring::signature::EcdsaKeyPair::from_pkcs8(
&signature::ECDSA_P384_SHA384_ASN1_SIGNING,
pkcs8.as_slice(),
);
if key_pair.is_err() {
break;
}