feat: updates
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
use base64::engine::general_purpose::STANDARD;
|
||||||
|
use base64::Engine;
|
||||||
use swift_secure_enclave_tool_rs::{
|
use swift_secure_enclave_tool_rs::{
|
||||||
generate_ecdsa_keypair, is_secure_enclave_supported, KeyMaterial, KeyPurpose,
|
generate_ecdsa_keypair, is_secure_enclave_supported, KeyMaterial, KeyPurpose,
|
||||||
};
|
};
|
||||||
@@ -33,10 +35,10 @@ fn print_key_material(prefix: &str, key_material: &KeyMaterial) {
|
|||||||
);
|
);
|
||||||
println!(
|
println!(
|
||||||
"\nPublic key:\n{}",
|
"\nPublic key:\n{}",
|
||||||
hex::encode(&key_material.public_key_der)
|
STANDARD.encode(&key_material.public_key_der)
|
||||||
);
|
);
|
||||||
println!(
|
println!(
|
||||||
"\nPrivate key representation:\n{}",
|
"\nPrivate key representation:\n{}",
|
||||||
hex::encode(&key_material.private_key_representation)
|
STANDARD.encode(&key_material.private_key_representation)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user