Sign shreds on the GPU (#6595)

* sign gpu shreds

* wip

* checks

* tests build

* test

* tests

* test

* nits

* sign cpu test

* write out the sigs in parallel

* clippy

* cpu test

* prepare secret for gpu

* woot!

* update

* bump perf libs
This commit is contained in:
anatoly yakovenko
2019-11-02 06:23:14 -07:00
committed by GitHub
parent 50a17fc00b
commit 9ea398416e
8 changed files with 421 additions and 87 deletions

View File

@ -39,6 +39,24 @@ pub struct Api<'a> {
) -> u32,
>,
#[allow(clippy::type_complexity)]
pub ed25519_sign_many: Symbol<
'a,
unsafe extern "C" fn(
vecs: *mut Elems,
num: u32, //number of vecs
message_size: u32, //size of each element inside the elems field of the vec
total_packets: u32,
total_signatures: u32,
message_lens: *const u32,
pubkey_offsets: *const u32,
privkey_offsets: *const u32,
signed_message_offsets: *const u32,
sgnatures_out: *mut u8, //combined length of all the items in vecs
use_non_default_stream: u8,
) -> u32,
>,
pub chacha_cbc_encrypt_many_sample: Symbol<
'a,
unsafe extern "C" fn(