feat: v1.9.1
This commit is contained in:
6
Cargo.lock
generated
6
Cargo.lock
generated
@@ -1716,9 +1716,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "swift-secure-enclave-tool-rs"
|
name = "swift-secure-enclave-tool-rs"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1cc8ba06af10bf59b2f47fb46238a0c62c2ac927184253b4fb998b3b3f68950a"
|
checksum = "1de60ab30b0f344a083df555373a2f419a0682f1a5d76c9f845abe696230caba"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
"hex",
|
"hex",
|
||||||
@@ -1880,7 +1880,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tiny-encrypt"
|
name = "tiny-encrypt"
|
||||||
version = "1.9.0"
|
version = "1.9.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aes-gcm-stream",
|
"aes-gcm-stream",
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tiny-encrypt"
|
name = "tiny-encrypt"
|
||||||
version = "1.9.0"
|
version = "1.9.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
description = "A simple and tiny file encrypt tool"
|
description = "A simple and tiny file encrypt tool"
|
||||||
@@ -51,7 +51,7 @@ pinentry = "0.6"
|
|||||||
secrecy = "0.10"
|
secrecy = "0.10"
|
||||||
dialoguer = "0.11"
|
dialoguer = "0.11"
|
||||||
ctrlc = "3.4"
|
ctrlc = "3.4"
|
||||||
swift-secure-enclave-tool-rs = "0.1.0"
|
swift-secure-enclave-tool-rs = "0.1"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ pub fn generate_se_p256_keypair() -> XResult<(String, String)> {
|
|||||||
return simple_error!("Secure enclave is not supported.");
|
return simple_error!("Secure enclave is not supported.");
|
||||||
}
|
}
|
||||||
let key_material =
|
let key_material =
|
||||||
swift_secure_enclave_tool_rs::generate_ecdsa_keypair(KeyPurpose::KeyAgreement, true)?;
|
swift_secure_enclave_tool_rs::generate_keypair(KeyPurpose::KeyAgreement, true)?;
|
||||||
Ok((
|
Ok((
|
||||||
hex::encode(&key_material.public_key_point),
|
hex::encode(&key_material.public_key_point),
|
||||||
STANDARD.encode(&key_material.private_key_representation),
|
STANDARD.encode(&key_material.private_key_representation),
|
||||||
|
|||||||
Reference in New Issue
Block a user