use rust_sike::{ kem::KEM, sike_p610_params, strategy::{P610_THREE_TORSION_STRATEGY, P610_TWO_TORSION_STRATEGY}, }; fn main() { let params = sike_p610_params( Some(P610_TWO_TORSION_STRATEGY.to_vec()), Some(P610_THREE_TORSION_STRATEGY.to_vec()), ) .unwrap(); let kem = KEM::setup(params); let (s, sk3, pk3) = kem.keygen().unwrap(); let (c, _k) = kem.encaps(&pk3).unwrap(); let k_recovered = kem.decaps(&s, &sk3, &pk3, c.clone()).unwrap(); println!("{:?}", k_recovered) }