Storage mining fixups...

* Use IV to make unique identies
* Use hex! macro for hex literal and not string converted to u8 slice
* fix sha sampling to control init/end of sha state
This commit is contained in:
Stephen Akridge
2018-10-19 10:39:13 -07:00
committed by sakridge
parent 3b33150cfb
commit ead7f4287a
7 changed files with 130 additions and 50 deletions

View File

@@ -38,7 +38,7 @@ extern "C" {
pub fn chacha_cbc_encrypt_many_sample(
input: *const u8,
output: *mut u8,
sha_state: *mut u8,
in_len: usize,
keys: *const u8,
ivec: *mut u8,
@@ -48,6 +48,9 @@ extern "C" {
starting_block: u64,
time_us: *mut f32,
);
pub fn chacha_init_sha_state(sha_state: *mut u8, num_keys: u32);
pub fn chacha_end_sha_state(sha_state_in: *const u8, out: *mut u8, num_keys: u32);
}
#[cfg(not(feature = "cuda"))]