mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 15:52:23 +01:00
Rust wrapper: run CI tests on ARM
This commit is contained in:
3
.github/workflows/rust-wrapper.yml
vendored
3
.github/workflows/rust-wrapper.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
build_wolfssl:
|
||||
name: Build wolfSSL Rust Wrapper
|
||||
if: github.repository_owner == 'wolfssl'
|
||||
runs-on: ubuntu-24.04
|
||||
runs-on: ${{ matrix.os }}
|
||||
# This should be a safe limit for the tests to run.
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
@@ -33,6 +33,7 @@ jobs:
|
||||
run: make -C wrapper/rust test
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ ubuntu-24.04, ubuntu-24.04-arm ]
|
||||
config: [
|
||||
# Add new configs here
|
||||
'',
|
||||
|
||||
@@ -842,10 +842,10 @@ impl ECC {
|
||||
return Err(rc);
|
||||
}
|
||||
let mut wc_ecc_key = unsafe { wc_ecc_key.assume_init() };
|
||||
let qx_ptr = qx.as_ptr() as *const i8;
|
||||
let qy_ptr = qy.as_ptr() as *const i8;
|
||||
let d_ptr = d.as_ptr() as *const i8;
|
||||
let curve_name_ptr = curve_name.as_ptr() as *const i8;
|
||||
let qx_ptr = qx.as_ptr() as *const core::ffi::c_char;
|
||||
let qy_ptr = qy.as_ptr() as *const core::ffi::c_char;
|
||||
let d_ptr = d.as_ptr() as *const core::ffi::c_char;
|
||||
let curve_name_ptr = curve_name.as_ptr() as *const core::ffi::c_char;
|
||||
let rc = unsafe {
|
||||
sys::wc_ecc_import_raw(&mut wc_ecc_key, qx_ptr, qy_ptr, d_ptr,
|
||||
curve_name_ptr)
|
||||
@@ -902,9 +902,9 @@ impl ECC {
|
||||
return Err(rc);
|
||||
}
|
||||
let mut wc_ecc_key = unsafe { wc_ecc_key.assume_init() };
|
||||
let qx_ptr = qx.as_ptr() as *const i8;
|
||||
let qy_ptr = qy.as_ptr() as *const i8;
|
||||
let d_ptr = d.as_ptr() as *const i8;
|
||||
let qx_ptr = qx.as_ptr() as *const core::ffi::c_char;
|
||||
let qy_ptr = qy.as_ptr() as *const core::ffi::c_char;
|
||||
let d_ptr = d.as_ptr() as *const core::ffi::c_char;
|
||||
let rc = unsafe {
|
||||
sys::wc_ecc_import_raw_ex(&mut wc_ecc_key, qx_ptr, qy_ptr, d_ptr,
|
||||
curve_id)
|
||||
@@ -1160,8 +1160,8 @@ impl ECC {
|
||||
/// ```
|
||||
pub fn rs_hex_to_sig(r: &[u8], s: &[u8], dout: &mut [u8]) -> Result<usize, i32> {
|
||||
let mut dout_size = dout.len() as u32;
|
||||
let r_ptr = r.as_ptr() as *const i8;
|
||||
let s_ptr = s.as_ptr() as *const i8;
|
||||
let r_ptr = r.as_ptr() as *const core::ffi::c_char;
|
||||
let s_ptr = s.as_ptr() as *const core::ffi::c_char;
|
||||
let rc = unsafe {
|
||||
sys::wc_ecc_rs_to_sig(r_ptr, s_ptr, dout.as_mut_ptr(),
|
||||
&mut dout_size)
|
||||
|
||||
Reference in New Issue
Block a user