use rust_sike::{ kem::KEM, sike_p503_params, strategy::{P503_THREE_TORSION_STRATEGY, P503_TWO_TORSION_STRATEGY}, }; fn main() { let params = sike_p503_params( Some(P503_TWO_TORSION_STRATEGY.to_vec()), Some(P503_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) }