feat: updates

This commit is contained in:
2025-03-23 23:34:34 +08:00
parent cb2ac74ce7
commit e9086a8e8f
2 changed files with 7 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ use swift_secure_enclave_tool_rs::private_key_ecdh;
fn main() {
let args = std::env::args().collect::<Vec<_>>();
let private_key_representation = STANDARD.decode(&args[1]).unwrap();
let epk = hex::decode(&args[2]).unwrap();
let epk = STANDARD.decode(&args[2]).unwrap();
let shared_secret = private_key_ecdh(&private_key_representation, &epk).unwrap();