feat: updates
This commit is contained in:
@@ -10,6 +10,14 @@ pub fn is_support_se() -> bool {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn check_se_supported() -> XResult<()> {
|
||||
if !is_support_se() {
|
||||
simple_error!("Secure Enclave is NOT supported.")
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
pub fn generate_secure_enclave_p256_keypair(
|
||||
sign: bool,
|
||||
require_bio: bool,
|
||||
|
||||
Reference in New Issue
Block a user