From fcd982ec4ce4f3ea202a52016cead925058f7b6a Mon Sep 17 00:00:00 2001 From: n0xena <68239493+n0xena@users.noreply.github.com> Date: Fri, 11 Sep 2026 17:32:23 +0200 Subject: [PATCH] Update session.rs --- libtss-ffi/src/session.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libtss-ffi/src/session.rs b/libtss-ffi/src/session.rs index 2ba4c8d..99ffea6 100644 --- a/libtss-ffi/src/session.rs +++ b/libtss-ffi/src/session.rs @@ -174,7 +174,15 @@ pub extern "C" fn tss_sign_new( .collect::, _>>()? }; - libtss::SignSession::new_dkls(&handle, sid, &cps, hash)? + match handle.ciphersuite() { + libtss::Ciphersuite::Secp256k1ECDSA => + libtss::SignSession::new_dkls(&handle, sid, &cps, hash)?, + + libtss::Ciphersuite::Secp256r1ECDSA => + libtss::SignSession::new_dkls_r1(&handle, sid, &cps, hash)?, + + _ => return Err(libtss::TssError::ProtocolMismatch), + } } };