Lines Matching refs:ffi
5 use bssl_ffi as ffi;
46 ffi::init(); in default()
217 if peer_key_data.len() != ffi::X25519_PUBLIC_VALUE_LEN as usize { in finish()
225 let mut sig = vec_try![0; ffi::X25519_SHARED_KEY_LEN as usize]?; in finish()
229 ffi::X25519(sig.as_mut_ptr(), &key.0 as *const u8, peer_key_data.as_ptr()) in finish()
252 md_ctx: *mut ffi::EVP_MD_CTX,
253 pctx: *mut ffi::EVP_PKEY_CTX,
262 ffi::EVP_MD_CTX_free(self.md_ctx); in drop()
276 md_ctx: cvt_p(ffi::EVP_MD_CTX_new())?, in new()
281 let r = ffi::EVP_DigestSignInit( in new()
304 cvt(ffi::EVP_DigestUpdate(self.md_ctx, data.as_ptr() as *const _, data.len()))?; in update()
313 cvt(ffi::EVP_DigestSignFinal(self.md_ctx, ptr::null_mut(), &mut max_siglen))?; in finish()
319 cvt(ffi::EVP_DigestSignFinal( in finish()