Closed oilel closed 1 year ago
I use Termux, a terminal emulator for Android, on ARM64.
Is this with the std
feature enabled for Kyber?
Is this with the
std
feature enabled for Kyber?
No.
Enable std
and you should be fine. Please update if there's any more problems.
I should make a note somewhere in the readme about no_std and exception handling.
Is this still causing any problems?
Is this still causing any problems?
No.
use pqc_kyber::*; fn main(){ let mut rng = rand::thread_rng(); let pair = keypair(&mut rng); let (ct, ss) = encapsulate(&pair.public, &mut rng)?; }
[panic_handler]
fn my_panic(_info: &core::panic::PanicInfo) -> ! { loop {} }
[lang = "eh_personality"]
extern "C" fn eh_personality() {}
Still get compile time error: error:
#[panic_handler]
function required, but not founderror: language item required, but not found:
eh_personality
| = note: this can occur when a binary crate with#![no_std]
is compiled for a target whereeh_personality
is defined in the standard library = help: you may be able to compile for a target that doesn't needeh_personality
, specify a target with--target
or in.cargo/config