feat: external_sign secure enclave only supports ES256
This commit is contained in:
@@ -55,6 +55,9 @@ fn sign(sub_arg_matches: &ArgMatches) -> XResult<Vec<u8>> {
|
||||
let message_bytes = base64_decode(message_base64)?;
|
||||
match key_uri {
|
||||
KeyUri::SecureEnclaveKey(key) => {
|
||||
if "ES256" != alg {
|
||||
return simple_error!("Invalid alg: {}", alg);
|
||||
}
|
||||
if key.usage != KeyUsage::Singing {
|
||||
simple_error!("Not singing key")
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user