mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-01-22 21:37:18 +01:00
#
This commit is contained in:
parent
cb2a965907
commit
76f6da5222
|
@ -121,25 +121,14 @@ Orignal is sensei of crypto ;)
|
|||
*/
|
||||
std::cout << "Thread " << id_thread << " binded" << std::endl;
|
||||
|
||||
uint8_t * b = (uint8_t*)malloc(391*sizeof(uint8_t));
|
||||
uint8_t * hash = (uint8_t*)malloc(32*sizeof(uint32_t));
|
||||
uint8_t * b = (uint8_t*)aligned_alloc(4,391*sizeof(uint8_t));
|
||||
uint8_t * hash = (uint8_t*)aligned_alloc(4,32*sizeof(uint32_t));
|
||||
|
||||
if(!b or !hash){
|
||||
std::cout << "Error allocate memory " << std::endl;
|
||||
std::cout << "Error allocate/alignment memory " << std::endl;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
if(
|
||||
!posix_memalign((void**)&b,4,391*sizeof(uint8_t))
|
||||
or
|
||||
!posix_memalign((void**)&hash,4,32*sizeof(uint32_t) )
|
||||
){
|
||||
|
||||
std::cout << "Error alignment memory " << std::endl;
|
||||
exit(-1);
|
||||
|
||||
}
|
||||
|
||||
memcpy (b, buf, 391);
|
||||
|
||||
int len = strlen (prefix);
|
||||
|
|
Loading…
Reference in a new issue