#[cfg(target_arch = "aarch64")]
pub use ::core::arch::aarch64::int64x2_t as __m128i;
#[cfg(target_arch = "x86")]
pub use ::core::arch::x86::__m128i;
#[cfg(target_arch = "x86_64")]
pub use ::core::arch::x86_64::__m128i;
unsafe extern "C" {
fn lanes_plus_rq_crt_sub(
out: *mut LANES_PLUS_Rq_CRT,
a: *const LANES_PLUS_Rq_CRT,
b: *const LANES_PLUS_Rq_CRT,
);
fn lanes_plus_rq_crt_inner_product_nomodq(
out: *mut LANES_PLUS_Rq_CRT,
a: *const LANES_PLUS_Rq_CRT,
b: *const LANES_PLUS_Rq_CRT,
len: size_t,
);
fn lanes_plus_rq_to_crt(out: *mut LANES_PLUS_Rq_CRT, in_0: *const LANES_PLUS_Rq);
fn lanes_plus_crt_to_rq(out: *mut LANES_PLUS_Rq, in_0: *const LANES_PLUS_Rq_CRT);
fn lanes_plus_crt_to_rounding(
out: *mut LANES_PLUS_Rq,
in_0: *const LANES_PLUS_Rq_CRT,
);
fn lanes_plus_rounding_mulq0_to_crt(
out: *mut LANES_PLUS_Rq_CRT,
in_0: *const LANES_PLUS_Rq,
);
fn rp_ntt(a: *mut int64_t);
fn rp_intt(a: *mut int64_t);
fn lanes_plus_rq_crt_mul_ntt(
out: *mut LANES_PLUS_Rq_CRT,
a: *const LANES_PLUS_Rq_CRT,
b: *const LANES_PLUS_Rq_CRT,
);
fn lanes_plus_rq_crt_inner_product_nomodq_ntt(
out: *mut LANES_PLUS_Rq_CRT,
a: *const LANES_PLUS_Rq_CRT,
b: *const LANES_PLUS_Rq_CRT,
len: size_t,
);
fn lanes_plus_rq_crt_inner_product_ntt(
out: *mut LANES_PLUS_Rq_CRT,
a: *const LANES_PLUS_Rq_CRT,
b: *const LANES_PLUS_Rq_CRT,
len: size_t,
);
fn r_gen(pp: *mut R_PP, ctx: *mut aes256ctr_ctx);
fn r_prove(
out: *mut R_PROOF,
pp: *const R_PP,
ulp: *const R_ULP,
s: *const LANES_PLUS_Rq,
ctx: *mut aes256ctr_ctx,
rho: *mut LANES_PLUS_RHO,
);
fn r_ver(
pp: *const R_PP,
ulp: *const R_ULP,
in_0: *const R_PROOF,
rho: *mut LANES_PLUS_RHO,
) -> ::core::ffi::c_int;
fn lav_sampler_rq_crt_1d(
out_crt: *mut LANES_PLUS_Rq_CRT,
len: size_t,
ctx: *mut aes256ctr_ctx,
);
fn lav_sampler_ternary_1d(
out: *mut LANES_PLUS_Rq,
len: size_t,
ctx: *mut aes256ctr_ctx,
);
fn lav_sampler_g_crt(
out_crt: *mut LANES_PLUS_Rq_CRT,
m: *const ::core::ffi::c_uchar,
mlen: size_t,
);
}
pub type size_t = usize;
pub type int16_t = i16;
pub type uint16_t = u16;
pub type int32_t = i32;
pub type int64_t = i64;
pub type uint64_t = u64;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct aes256ctr_ctx {
pub rkeys: [__m128i; 16],
pub n: __m128i,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LANES_Rqhat {
pub poly: [int64_t; 128],
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LANES_Rqhat_16 {
pub poly: [int16_t; 128],
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LANES_PP {
pub B0: [[LANES_Rqhat; 22]; 7],
pub b: [[LANES_Rqhat; 22]; 9],
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LANES_COM_PUB {
pub t0: [LANES_Rqhat; 7],
pub t: [LANES_Rqhat; 6],
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LANES_PROOF {
pub tN: [LANES_Rqhat; 3],
pub w: [LANES_Rqhat; 7],
pub alpha: [LANES_Rqhat; 6],
pub gamma: *mut int64_t,
pub h: LANES_Rqhat,
pub v: LANES_Rqhat,
pub v_prime: LANES_Rqhat,
pub c: LANES_Rqhat_16,
pub z: [LANES_Rqhat_16; 22],
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LANES_PLUS_Rq {
pub poly: [int64_t; 32],
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LANES_PLUS_Rq_CRT {
pub poly_q0: [int32_t; 32],
pub poly_p: [int64_t; 32],
}
pub type LANES_PLUS_PP = LANES_PP;
pub type LANES_PLUS_COM_PUB = LANES_COM_PUB;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LANES_PLUS_PROOF {
pub lanes_proof: LANES_PROOF,
pub c: LANES_PLUS_Rq,
pub z: *mut LANES_PLUS_Rq,
pub f: LANES_PLUS_Rq,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LANES_PLUS_RHO {
pub rho: *mut ::core::ffi::c_uchar,
pub rho_len: size_t,
pub extra: *const ::core::ffi::c_void,
pub callback: Option<
unsafe extern "C" fn(*mut ::core::ffi::c_void, *const ::core::ffi::c_void) -> (),
>,
}
pub type R_PP = LANES_PLUS_PP;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct R_ULP {
pub B_crt: *const LANES_PLUS_Rq_CRT,
pub v: *const LANES_PLUS_Rq,
pub dim: size_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct R_PROOF {
pub t: LANES_PLUS_COM_PUB,
pub pi: LANES_PLUS_PROOF,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LAV_PP {
pub pp_prime: R_PP,
pub A_crt: [[LANES_PLUS_Rq_CRT; 40]; 48],
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LAV_SK {
pub s: [LANES_PLUS_Rq; 40],
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LAV_PK {
pub t: [LANES_PLUS_Rq; 48],
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct LAV_VRF {
pub v: LANES_PLUS_Rq,
pub sigma: R_PROOF,
}
#[inline]
unsafe extern "C" fn ct_lt(x: uint64_t, y: uint64_t) -> uint64_t {
return x.wrapping_sub(y);
}
#[inline]
unsafe extern "C" fn store_16(mut x: *mut ::core::ffi::c_uchar, c: uint16_t) {
*x = c as ::core::ffi::c_uchar;
*x.offset(1 as ::core::ffi::c_int as isize) = (c as ::core::ffi::c_int
>> 8 as ::core::ffi::c_int) as ::core::ffi::c_uchar;
}
#[inline]
unsafe extern "C" fn norm_check(
mut z: *const LANES_PLUS_Rq,
len: size_t,
bound: uint64_t,
) -> uint64_t {
let mut i: size_t = 0;
let mut j: size_t = 0;
let mut ret: uint64_t = 0 as uint64_t;
i = 0 as size_t;
while i < len {
j = 0 as size_t;
while j < 32 as size_t {
ret
|= ct_lt(bound, (*z.offset(i as isize)).poly[j as usize] as uint64_t)
| ct_lt(
(*z.offset(i as isize)).poly[j as usize] as uint64_t,
bound.wrapping_neg(),
);
j = j.wrapping_add(1);
}
i = i.wrapping_add(1);
}
return ret;
}
static mut lav_k: size_t = 26 as size_t;
#[unsafe(no_mangle)]
pub unsafe extern "C" fn lav_paramgen(mut pp: *mut LAV_PP, mut ctx: *mut aes256ctr_ctx) {
let mut i: size_t = 0;
r_gen(&raw mut (*pp).pp_prime, ctx);
i = 0 as size_t;
while i < 48 as size_t {
lav_sampler_rq_crt_1d(
&raw mut *(&raw mut (*pp).A_crt as *mut [LANES_PLUS_Rq_CRT; 40])
.offset(i as isize) as *mut LANES_PLUS_Rq_CRT,
40 as size_t,
ctx,
);
i = i.wrapping_add(1);
}
}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn lav_keygen(
mut pk: *mut LAV_PK,
mut sk: *mut LAV_SK,
mut pp: *const LAV_PP,
mut ctx: *mut aes256ctr_ctx,
) {
let mut s_crt_ntt: [LANES_PLUS_Rq_CRT; 40] = [LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
}; 40];
let mut As_crt_ntt: LANES_PLUS_Rq_CRT = LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
};
let mut i: size_t = 0;
let mut j: size_t = 0;
lav_sampler_ternary_1d(&raw mut (*sk).s as *mut LANES_PLUS_Rq, 40 as size_t, ctx);
i = 0 as size_t;
while i < 40 as size_t {
lanes_plus_rq_to_crt(
(&raw mut s_crt_ntt as *mut LANES_PLUS_Rq_CRT).offset(i as isize),
(&raw mut (*sk).s as *mut LANES_PLUS_Rq).offset(i as isize),
);
rp_ntt(
&raw mut (*(&raw mut s_crt_ntt as *mut LANES_PLUS_Rq_CRT).offset(i as isize))
.poly_p as *mut int64_t,
);
i = i.wrapping_add(1);
}
i = 0 as size_t;
while i < 48 as size_t {
lanes_plus_rq_crt_inner_product_ntt(
&raw mut As_crt_ntt,
&raw const *(&raw const (*pp).A_crt as *const [LANES_PLUS_Rq_CRT; 40])
.offset(i as isize) as *const LANES_PLUS_Rq_CRT,
&raw mut s_crt_ntt as *mut LANES_PLUS_Rq_CRT,
40 as size_t,
);
rp_intt(&raw mut As_crt_ntt.poly_p as *mut int64_t);
lanes_plus_crt_to_rounding(
(&raw mut (*pk).t as *mut LANES_PLUS_Rq).offset(i as isize),
&raw mut As_crt_ntt,
);
i = i.wrapping_add(1);
}
}
#[inline]
unsafe extern "C" fn power2round(
mut a0: *mut int64_t,
a: int64_t,
D: size_t,
) -> int64_t {
let mut a1: int64_t = 0;
a1 = a + ((1 as ::core::ffi::c_int) << D.wrapping_sub(1 as size_t)) as int64_t
- 1 as int64_t >> D;
*a0 = a - (a1 << D);
return a1;
}
unsafe extern "C" fn eval_callback(
mut out: *mut ::core::ffi::c_void,
mut in_0: *const ::core::ffi::c_void,
) {
let mut rho: *mut LANES_PLUS_RHO = out as *mut LANES_PLUS_RHO;
let mut A_crt: *mut [LANES_PLUS_Rq_CRT; 40] = (*rho).extra
as *mut [LANES_PLUS_Rq_CRT; 40];
let mut y_crt: *mut LANES_PLUS_Rq_CRT = in_0 as *mut LANES_PLUS_Rq_CRT;
let mut Ay_crt_ntt: LANES_PLUS_Rq_CRT = LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
};
let mut w: LANES_PLUS_Rq = LANES_PLUS_Rq { poly: [0; 32] };
let mut i: size_t = 0;
let mut j: size_t = 0;
let mut tmp: int64_t = 0;
let mut buf: *mut ::core::ffi::c_uchar = (*rho).rho;
let mut y_crt_ntt: [LANES_PLUS_Rq_CRT; 40] = [LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
}; 40];
i = 0 as size_t;
while i < 40 as size_t {
j = 0 as size_t;
while j < 32 as size_t {
y_crt_ntt[i as usize].poly_q0[j as usize] = (*y_crt.offset(i as isize))
.poly_q0[j as usize];
y_crt_ntt[i as usize].poly_p[j as usize] = (*y_crt.offset(i as isize))
.poly_p[j as usize];
j = j.wrapping_add(1);
}
rp_ntt(
&raw mut (*(&raw mut y_crt_ntt as *mut LANES_PLUS_Rq_CRT).offset(i as isize))
.poly_p as *mut int64_t,
);
i = i.wrapping_add(1);
}
i = 0 as size_t;
while i < 48 as size_t {
lanes_plus_rq_crt_inner_product_ntt(
&raw mut Ay_crt_ntt,
&raw mut *A_crt.offset(i as isize) as *mut LANES_PLUS_Rq_CRT,
&raw mut y_crt_ntt as *mut LANES_PLUS_Rq_CRT,
40 as size_t,
);
rp_intt(&raw mut Ay_crt_ntt.poly_p as *mut int64_t);
lanes_plus_crt_to_rq(&raw mut w, &raw mut Ay_crt_ntt);
j = 0 as size_t;
while j < 32 as size_t {
store_16(
buf,
power2round(&raw mut tmp, w.poly[j as usize], lav_k) as uint16_t,
);
buf = buf.offset(2 as ::core::ffi::c_int as isize);
j = j.wrapping_add(1);
}
i = i.wrapping_add(1);
}
}
#[inline]
unsafe extern "C" fn compute_w2(
mut w2: *mut LANES_PLUS_Rq,
mut A_crt: *const [LANES_PLUS_Rq_CRT; 40],
mut z: *const LANES_PLUS_Rq,
mut c: *const LANES_PLUS_Rq,
mut q0t_crt_ntt: *const LANES_PLUS_Rq_CRT,
) {
let mut z_crt_ntt: [LANES_PLUS_Rq_CRT; 40] = [LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
}; 40];
let mut c_crt_ntt: LANES_PLUS_Rq_CRT = LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
};
let mut c_q0t_crt_ntt: LANES_PLUS_Rq_CRT = LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
};
let mut w2_crt_ntt: LANES_PLUS_Rq_CRT = LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
};
let mut i: size_t = 0;
let mut j: size_t = 0;
i = 0 as size_t;
while i < 40 as size_t {
lanes_plus_rq_to_crt(
(&raw mut z_crt_ntt as *mut LANES_PLUS_Rq_CRT).offset(i as isize),
z.offset(i as isize),
);
rp_ntt(
&raw mut (*(&raw mut z_crt_ntt as *mut LANES_PLUS_Rq_CRT).offset(i as isize))
.poly_p as *mut int64_t,
);
i = i.wrapping_add(1);
}
lanes_plus_rq_to_crt(&raw mut c_crt_ntt, c);
rp_ntt(&raw mut c_crt_ntt.poly_p as *mut int64_t);
i = 0 as size_t;
while i < 48 as size_t {
lanes_plus_rq_crt_inner_product_nomodq_ntt(
&raw mut w2_crt_ntt,
&raw const *A_crt.offset(i as isize) as *const LANES_PLUS_Rq_CRT,
&raw mut z_crt_ntt as *mut LANES_PLUS_Rq_CRT,
40 as size_t,
);
lanes_plus_rq_crt_mul_ntt(
&raw mut c_q0t_crt_ntt,
&raw mut c_crt_ntt,
q0t_crt_ntt.offset(i as isize),
);
lanes_plus_rq_crt_sub(
&raw mut w2_crt_ntt,
&raw mut w2_crt_ntt,
&raw mut c_q0t_crt_ntt,
);
rp_intt(&raw mut w2_crt_ntt.poly_p as *mut int64_t);
lanes_plus_crt_to_rq(w2.offset(i as isize), &raw mut w2_crt_ntt);
i = i.wrapping_add(1);
}
}
static mut w2_hat_bound: uint64_t = 33523200 as uint64_t;
#[unsafe(no_mangle)]
pub unsafe extern "C" fn lav_eval(
mut out: *mut LAV_VRF,
mut pp: *const LAV_PP,
mut pk: *const LAV_PK,
mut sk: *const LAV_SK,
mut m: *const ::core::ffi::c_uchar,
mlen: size_t,
mut ctx: *mut aes256ctr_ctx,
) {
let mut b_crt: [LANES_PLUS_Rq_CRT; 40] = [LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
}; 40];
let mut s_crt: [LANES_PLUS_Rq_CRT; 40] = [LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
}; 40];
let mut bs_crt: LANES_PLUS_Rq_CRT = LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
};
let mut q0t_crt_ntt: [LANES_PLUS_Rq_CRT; 48] = [LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
}; 48];
let mut w2_hat_2k: [LANES_PLUS_Rq; 48] = [LANES_PLUS_Rq { poly: [0; 32] }; 48];
let mut i: size_t = 0;
let mut j: size_t = 0;
lav_sampler_g_crt(&raw mut b_crt as *mut LANES_PLUS_Rq_CRT, m, mlen);
i = 0 as size_t;
while i < 40 as size_t {
lanes_plus_rq_to_crt(
(&raw mut s_crt as *mut LANES_PLUS_Rq_CRT).offset(i as isize),
(&raw const (*sk).s as *const LANES_PLUS_Rq).offset(i as isize),
);
i = i.wrapping_add(1);
}
lanes_plus_rq_crt_inner_product_nomodq(
&raw mut bs_crt,
&raw mut b_crt as *mut LANES_PLUS_Rq_CRT,
&raw mut s_crt as *mut LANES_PLUS_Rq_CRT,
40 as size_t,
);
lanes_plus_crt_to_rounding(&raw mut (*out).v, &raw mut bs_crt);
let mut ulp: R_ULP = R_ULP {
B_crt: &raw mut b_crt as *mut LANES_PLUS_Rq_CRT,
v: &raw mut (*out).v,
dim: 40 as size_t,
};
let mut rho: LANES_PLUS_RHO = LANES_PLUS_RHO {
rho: ::core::ptr::null_mut::<::core::ffi::c_uchar>(),
rho_len: (2 as ::core::ffi::c_int * 48 as ::core::ffi::c_int
* 32 as ::core::ffi::c_int) as size_t,
extra: &raw const (*pp).A_crt as *const [LANES_PLUS_Rq_CRT; 40]
as *const ::core::ffi::c_void,
callback: Some(
eval_callback
as unsafe extern "C" fn(
*mut ::core::ffi::c_void,
*const ::core::ffi::c_void,
) -> (),
),
};
i = 0 as size_t;
while i < 48 as size_t {
lanes_plus_rounding_mulq0_to_crt(
(&raw mut q0t_crt_ntt as *mut LANES_PLUS_Rq_CRT).offset(i as isize),
(&raw const (*pk).t as *const LANES_PLUS_Rq).offset(i as isize),
);
rp_ntt(
&raw mut (*(&raw mut q0t_crt_ntt as *mut LANES_PLUS_Rq_CRT)
.offset(i as isize))
.poly_p as *mut int64_t,
);
i = i.wrapping_add(1);
}
loop {
r_prove(
&raw mut (*out).sigma,
&raw const (*pp).pp_prime,
&raw mut ulp,
&raw const (*sk).s as *const LANES_PLUS_Rq,
ctx,
&raw mut rho,
);
compute_w2(
&raw mut w2_hat_2k as *mut LANES_PLUS_Rq,
&raw const (*pp).A_crt as *const [LANES_PLUS_Rq_CRT; 40],
(*out).sigma.pi.z,
&raw mut (*out).sigma.pi.c,
&raw mut q0t_crt_ntt as *mut LANES_PLUS_Rq_CRT,
);
i = 0 as size_t;
while i < 48 as size_t {
j = 0 as size_t;
while j < 32 as size_t {
power2round(
(&raw mut (*(&raw mut w2_hat_2k as *mut LANES_PLUS_Rq)
.offset(i as isize))
.poly as *mut int64_t)
.offset(j as isize),
w2_hat_2k[i as usize].poly[j as usize],
lav_k,
);
j = j.wrapping_add(1);
}
i = i.wrapping_add(1);
}
if !(norm_check(
&raw mut w2_hat_2k as *mut LANES_PLUS_Rq,
48 as size_t,
w2_hat_bound,
) >> 63 as ::core::ffi::c_int != 0)
{
break;
}
};
}
unsafe extern "C" fn ver_callback(
mut out: *mut ::core::ffi::c_void,
mut in_0: *const ::core::ffi::c_void,
) {
let mut rho: *mut LANES_PLUS_RHO = out as *mut LANES_PLUS_RHO;
let mut w2_prime: *mut LANES_PLUS_Rq = (*rho).extra as *mut LANES_PLUS_Rq;
let mut i: size_t = 0;
let mut j: size_t = 0;
let mut tmp: int64_t = 0;
let mut buf: *mut ::core::ffi::c_uchar = (*rho).rho;
i = 0 as size_t;
while i < 48 as size_t {
j = 0 as size_t;
while j < 32 as size_t {
store_16(
buf,
power2round(
&raw mut tmp,
(*w2_prime.offset(i as isize)).poly[j as usize],
lav_k,
) as uint16_t,
);
buf = buf.offset(2 as ::core::ffi::c_int as isize);
j = j.wrapping_add(1);
}
i = i.wrapping_add(1);
}
}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn lav_verify(
mut pp: *const LAV_PP,
mut pk: *const LAV_PK,
mut m: *const ::core::ffi::c_uchar,
mlen: size_t,
mut in_0: *const LAV_VRF,
) -> ::core::ffi::c_int {
let mut b_crt: [LANES_PLUS_Rq_CRT; 40] = [LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
}; 40];
let mut q0t_crt_ntt: [LANES_PLUS_Rq_CRT; 48] = [LANES_PLUS_Rq_CRT {
poly_q0: [0; 32],
poly_p: [0; 32],
}; 48];
let mut w2_prime: [LANES_PLUS_Rq; 48] = [LANES_PLUS_Rq { poly: [0; 32] }; 48];
let mut i: size_t = 0;
lav_sampler_g_crt(&raw mut b_crt as *mut LANES_PLUS_Rq_CRT, m, mlen);
i = 0 as size_t;
while i < 48 as size_t {
lanes_plus_rounding_mulq0_to_crt(
(&raw mut q0t_crt_ntt as *mut LANES_PLUS_Rq_CRT).offset(i as isize),
(&raw const (*pk).t as *const LANES_PLUS_Rq).offset(i as isize),
);
rp_ntt(
&raw mut (*(&raw mut q0t_crt_ntt as *mut LANES_PLUS_Rq_CRT)
.offset(i as isize))
.poly_p as *mut int64_t,
);
i = i.wrapping_add(1);
}
compute_w2(
&raw mut w2_prime as *mut LANES_PLUS_Rq,
&raw const (*pp).A_crt as *const [LANES_PLUS_Rq_CRT; 40],
(*in_0).sigma.pi.z,
&raw const (*in_0).sigma.pi.c,
&raw mut q0t_crt_ntt as *mut LANES_PLUS_Rq_CRT,
);
let mut ulp: R_ULP = R_ULP {
B_crt: &raw mut b_crt as *mut LANES_PLUS_Rq_CRT,
v: &raw const (*in_0).v,
dim: 40 as size_t,
};
let mut rho: LANES_PLUS_RHO = LANES_PLUS_RHO {
rho: ::core::ptr::null_mut::<::core::ffi::c_uchar>(),
rho_len: (2 as ::core::ffi::c_int * 48 as ::core::ffi::c_int
* 32 as ::core::ffi::c_int) as size_t,
extra: &raw mut w2_prime as *mut LANES_PLUS_Rq as *const ::core::ffi::c_void,
callback: Some(
ver_callback
as unsafe extern "C" fn(
*mut ::core::ffi::c_void,
*const ::core::ffi::c_void,
) -> (),
),
};
return r_ver(
&raw const (*pp).pp_prime,
&raw mut ulp,
&raw const (*in_0).sigma,
&raw mut rho,
);
}