From 895faa7b2151135d03fa5360715f39e493e161b4 Mon Sep 17 00:00:00 2001 From: pjht Date: Mon, 14 Aug 2023 10:16:24 -0500 Subject: [PATCH] Remove left-in debug print --- id_ed25519_rustgen_sk | 9 +++++++++ id_ed25519_rustgen_sk.pub | 1 + id_ed25519_rustgen_sk_attest.bin | Bin 0 -> 1070 bytes id_ed25519_rustgen_sk_attest_chall.bin | 1 + src/main.rs | 1 - 5 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 id_ed25519_rustgen_sk create mode 100644 id_ed25519_rustgen_sk.pub create mode 100644 id_ed25519_rustgen_sk_attest.bin create mode 100644 id_ed25519_rustgen_sk_attest_chall.bin diff --git a/id_ed25519_rustgen_sk b/id_ed25519_rustgen_sk new file mode 100644 index 0000000..a0b3d73 --- /dev/null +++ b/id_ed25519_rustgen_sk @@ -0,0 +1,9 @@ +-----BEGIN OPENSSH PRIVATE KEY----- +b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAASgAAABpzay1zc2 +gtZWQyNTUxOUBvcGVuc3NoLmNvbQAAACCje3KpYF+DaiDIZvbx+UTNRNg3hQMU5dpinqlT +WpWPvAAAAARzc2g6AAAA6KaTr+Omk6/jAAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY2 +9tAAAAIKN7cqlgX4NqIMhm9vH5RM1E2DeFAxTl2mKeqVNalY+8AAAABHNzaDpBAAAAgBKI +bJWeslksveAe9QzC9ICiXUT3VBsPbH//WWjHQz3EDASNF3N/AAkWctMoKLa53CqFAxxnfi +6IH/7yzl9UvLh3hpOlbntI0v01ikKzH9pMvMvMk6g7Vw4o7JcLJtLMb/l3qj3gkkXUDn1s +sCpzlwKKZ+zmFc11KYdbNlDxnCtUAAAAAAAAAAh0ZXN0X2tleQE= +-----END OPENSSH PRIVATE KEY----- diff --git a/id_ed25519_rustgen_sk.pub b/id_ed25519_rustgen_sk.pub new file mode 100644 index 0000000..d6a2ef4 --- /dev/null +++ b/id_ed25519_rustgen_sk.pub @@ -0,0 +1 @@ +sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIKN7cqlgX4NqIMhm9vH5RM1E2DeFAxTl2mKeqVNalY+8AAAABHNzaDo= test_key \ No newline at end of file diff --git a/id_ed25519_rustgen_sk_attest.bin b/id_ed25519_rustgen_sk_attest.bin new file mode 100644 index 0000000000000000000000000000000000000000..e84ce9f00b7d70820cc6bc75f8b242ea04ba07a3 GIT binary patch literal 1070 zcmZQzU=S=W&d@E+)=exaNi8nXEi*7=U|_my(8P4ppo#I|0%j&gCMHgX`;%@SdGt1o z%Yc`SQ>)FR?K>|cBR4C9fu5m`ffgHcC=0W&a%5>zW^%qlsF9mOP=0=ig0rJSaB5Lz zVvd4|skxDXftj(Pfr2=%p^1TofuR8yL`m=)8JHRvSQ?l>1q|{HxeYi$Cb9`L1-lvw z83=$lTs)jm;~kw0l?)U>V%$8Ej-@3Tsd*)t$%!TTMGB5!FC>;^=I0q|7^s1r#Uqd8 zELT^Uiwq4-O$`k!O)V`AA`OJu*nxgJXUoLM#sOw9GqN)~F|cq+;neF1cgc^3l=pTIYATh1SMq%A&^SXr2X$UupW6DG*SB5J5-tY@ZYsAmGgh9(w9K-wIr zksG4ssSFb%BMS>N6N`a?B0>-(Cd4A3e;|B*qp5YY2N!oGvwAY zMigo7KX>WLnq-?doRML!DjPmM6~8-OV8+f)QSmnyjs`D!Qapd|L)-Niu3q1<#>@Q6 zr!xlcRZlad>Pp_uynZWuuhbmbz8ke}H+Z$J?_a$6ey(a9^j7pOkq%Ge+ zt^Rph&gxW`qrnfWA8Gx?_dXR$E8Lm+Vg<{)#owI@r*GR5xVbn+dCzR=Mh?>Ry`CQeL>3>!>T6b^}9G@YgB_sy?%uA=u=wZD*hGw*0;A9l7H`qaHqH z6L_&ONiZ_upWGqkXF+r3d*?MM@Scu~F_P)}_-NyPN1!4`^jKnO5bDU8I&V{?&fW)d zUwICFX;>8N@;yYFKd1hGWX5r4+ao+Iz2e3744h&`mo+rD?YyJa$}E#!r`I9>@6);X zkUcxf+a@o~tM<6`*R;!Nv-~ZeJ*Ur1USS>1r}1Vwx7wvM`9I57**=)$dWEkxXMtx S>8+%BD}$q^_U{3@9}EEeQHQhu literal 0 HcmV?d00001 diff --git a/id_ed25519_rustgen_sk_attest_chall.bin b/id_ed25519_rustgen_sk_attest_chall.bin new file mode 100644 index 0000000..55f086a --- /dev/null +++ b/id_ed25519_rustgen_sk_attest_chall.bin @@ -0,0 +1 @@ +9 qyZW>UsA \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index c608a49..ff38704 100644 --- a/src/main.rs +++ b/src/main.rs @@ -78,7 +78,6 @@ fn main() -> anyhow::Result<()> { libcfg.keep_alive_msg = "Touch the authenticator now.".into(); let device = FidoKeyHidFactory::create(&libcfg)?; let attestation = device.make_credential_with_args(&make_credential_args)?; - dbg!(&attestation.attstmt_alg); let verify_result = verifier::verify_attestation("ssh:", &challenge, &attestation); if !verify_result.is_success { return Err(anyhow!("Failed to verify attestation"));