pub fn create_unrestricted_signing_ecc_public(
    scheme: EccScheme,
    curve: EccCurve,
) -> Result<Public> {
    let object_attributes = ObjectAttributesBuilder::new()
        .with_fixed_tpm(true)
        .with_fixed_parent(true)
        .with_sensitive_data_origin(true)
        .with_user_with_auth(true)
        .with_decrypt(false)
        .with_sign_encrypt(true)
        .with_restricted(false)
        .build()?;

    PublicBuilder::new()
        .with_public_algorithm(PublicAlgorithm::Ecc)
        .with_name_hashing_algorithm(HashingAlgorithm::Sha256)
        .with_object_attributes(object_attributes)
        .with_ecc_parameters(
            PublicEccParametersBuilder::new_unrestricted_signing_key(scheme, curve).build()?,
        )
        .with_ecc_unique_identifier(&EccPoint::default())
        .build()
}
/// Create the [Public] structure for an ECC unrestricted signing key.
///
/// * `scheme` - Asymmetric scheme to be used for signing; *must* be an RSA signing scheme
/// * `curve` - identifier of the precise curve to be used with the key
Create the [Public] structure for an ECC unrestricted signing key.
`scheme` - Asymmetric scheme to be used for signing; *must* be an RSA signing scheme
`curve` - identifier of the precise curve to be used with the key
Create the [ Public ] structure for an ECC unrestricted signing key . ` scheme ` - Asymmetric scheme to be used for signing ; * must * be an RSA signing scheme ` curve ` - identifier of the precise curve to be used with the key
pub fn create_unrestricted_signing_ecc_public(
    scheme: EccScheme,
    curve: EccCurve,
) -> Result<Public> {
    let object_attributes = ObjectAttributesBuilder::new()
        .with_fixed_tpm(true)
        .with_fixed_parent(true)
        .with_sensitive_data_origin(true)
        .with_user_with_auth(true)
        .with_decrypt(false)
        .with_sign_encrypt(true)
        .with_restricted(false)
        .build()?;
    PublicBuilder::new()
        .with_public_algorithm(PublicAlgorithm::Ecc)
        .with_name_hashing_algorithm(HashingAlgorithm::Sha256)
        .with_object_attributes(object_attributes)
        .with_ecc_parameters(
            PublicEccParametersBuilder::new_unrestricted_signing_key(scheme, curve).build()?,
        )
        .with_ecc_unique_identifier(&EccPoint::default())
        .build()
}
pub fn create_unrestricted_signing_ecc_public ( scheme : EccScheme , curve : EccCurve , ) -> Result < Public > { let object_attributes = ObjectAttributesBuilder :: new ( ) . with_fixed_tpm ( true ) . with_fixed_parent ( true ) . with_sensitive_data_origin ( true ) . with_user_with_auth ( true ) . with_decrypt ( false ) . with_sign_encrypt ( true ) . with_restricted ( false ) . build ( ) ? ; PublicBuilder :: new ( ) . with_public_algorithm ( PublicAlgorithm :: Ecc ) . with_name_hashing_algorithm ( HashingAlgorithm :: Sha256 ) . with_object_attributes ( object_attributes ) . with_ecc_parameters ( PublicEccParametersBuilder :: new_unrestricted_signing_key ( scheme , curve ) . build ( ) ? , ) . with_ecc_unique_identifier ( & EccPoint :: default ( ) ) . build ( ) }
Create the [Public] structure for an ECC unrestricted signing key.
Create the [ Public ] structure for an ECC unrestricted signing key .
scheme
EccScheme
curve
EccCurve
scheme
EccScheme
curve
EccCurve