rust-tss-esapi icon indicating copy to clipboard operation
rust-tss-esapi copied to clipboard

Creating an ecc attestation key fails due to missing public

Open Firstyear opened this issue 2 years ago • 0 comments

2023-06-21T06:43:53.315108Z ERROR tss_esapi::structures::tagged::public: ECC unique identifier have not been set in the Public Builder even though the ECC algorithm have been selected. Consider using: .with_ecc_unique_identifier(&EccPoint::default())


    let ek_handle = tss_esapi::abstraction::ek::create_ek_object(
        &mut context,
        tss_esapi::interface_types::algorithm::AsymmetricAlgorithm::Ecc,
        tss_esapi::abstraction::DefaultKey
    )
    .unwrap();

    let att_key = tss_esapi::abstraction::ak::create_ak(
        &mut context,
        ek_handle.clone(),
        tss_esapi::interface_types::algorithm::HashingAlgorithm::Sha256,
        tss_esapi::interface_types::algorithm::SignatureSchemeAlgorithm::EcDsa,
        None,
        tss_esapi::abstraction::DefaultKey
    )
    .unwrap();

Failure occurs in create_ak - Likely here https://docs.rs/tss-esapi/latest/src/tss_esapi/abstraction/ak.rs.html#71

Firstyear avatar Jun 21 '23 06:06 Firstyear