Check for no entries left in blocktree in a given slot
There may not be ENTRIES_PER_SEGMENT entries a slot, if so then we will hang waiting for more.
This commit is contained in:
parent
8e70f5bf84
commit
0f1d6c6271
|
@ -54,6 +54,9 @@ pub fn chacha_cbc_encrypt_file_many_keys(
|
||||||
"chacha_cuda: encrypting segment: {} num_entries: {} entry_len: {}",
|
"chacha_cuda: encrypting segment: {} num_entries: {} entry_len: {}",
|
||||||
segment, num_entries, entry_len
|
segment, num_entries, entry_len
|
||||||
);
|
);
|
||||||
|
if num_entries == 0 {
|
||||||
|
break;
|
||||||
|
}
|
||||||
let entry_len_usz = entry_len as usize;
|
let entry_len_usz = entry_len as usize;
|
||||||
unsafe {
|
unsafe {
|
||||||
chacha_cbc_encrypt_many_sample(
|
chacha_cbc_encrypt_many_sample(
|
||||||
|
|
Loading…
Reference in New Issue