tss_esapi::abstraction::ek

Function create_ek_public_from_default_template

Source
pub fn create_ek_public_from_default_template<IKC: IntoKeyCustomization>(
    alg: AsymmetricAlgorithm,
    key_customization: IKC,
) -> Result<Public>
Expand description

Get the Public representing a default Endorsement Key

Note: This only works for key algorithms specified in TCG EK Credential Profile for TPM Family 2.0.

Source: TCG EK Credential Profile for TPM Family 2.0; Level 0 Version 2.3 Revision 2 Appendix B.3.3 and B.3.4

The API of this function will be changed to that of create_ek_public_from_default_template_2 in the next major version.