Lines Matching refs:Km
279 Err(Error::Km(ErrorCode::INVALID_ARGUMENT)) in create_operation()
283 _ => Err(Error::Km(ErrorCode::INVALID_ARGUMENT)) in create_operation()
327 Err(Error::Km(ErrorCode::TOO_MANY_OPERATIONS)) => { in create_operation()
331 v @ Err(Error::Km(ErrorCode::INVALID_KEY_BLOB)) => { in create_operation()
473 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in generate_key()
590 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in import_key()
615 .ok_or(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in import_key()
623 v => Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in import_key()
655 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)).context(format!( in import_wrapped_key()
666 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)).context( in import_wrapped_key()
809 Err(Error::Km(ErrorCode::KEY_REQUIRES_UPGRADE)) => { in upgrade_keyblob_if_required_with()
869 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)).context(concat!( in convert_storage_key_to_ephemeral()
877 .ok_or(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in convert_storage_key_to_ephemeral()
903 Err(error::Error::Km(ErrorCode::KEY_REQUIRES_UPGRADE)) => { in convert_storage_key_to_ephemeral()
935 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in delete_key()
942 .ok_or(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in delete_key()