Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating an ecc attestation key fails due to missing public #415

Open
Firstyear opened this issue Jun 21, 2023 · 0 comments
Open

Creating an ecc attestation key fails due to missing public #415

Firstyear opened this issue Jun 21, 2023 · 0 comments

Comments

@Firstyear
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant