@@ -329,7 +329,7 @@ block_mix(rblock_t& rblock) NOEXCEPT
329329 // Make 2R working blocks (1 rblock).
330330 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
331331 // [P * (R * 128)] bytes heap allocated.
332- const auto ptr = make_shared <rblock_t >();
332+ const auto ptr = to_shared <rblock_t >();
333333 if (!ptr) return false ;
334334 auto & yrblock = *ptr;
335335 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -356,7 +356,7 @@ block_mix(rblock_t& rblock) NOEXCEPT
356356 // Make 2R working blocks (1 rblock).
357357 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
358358 // [P * (R * 128)] bytes heap allocated.
359- const auto ptr = make_shared <rblock_t >();
359+ const auto ptr = to_shared <rblock_t >();
360360 if (!ptr) return false ;
361361 auto & yrblock = *ptr;
362362 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -375,7 +375,7 @@ block_mix(rblock_t& rblock) NOEXCEPT
375375 // Make R working blocks (half rblock).
376376 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
377377 // [P * (R * 64)] bytes heap allocated.
378- const auto ptr = make_shared <std_array<block_t , R>>();
378+ const auto ptr = to_shared <std_array<block_t , R>>();
379379 if (!ptr) return false ;
380380 auto & yblock = *ptr;
381381 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -394,7 +394,7 @@ block_mix(rblock_t& rblock) NOEXCEPT
394394 // Make R-1 working blocks.
395395 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
396396 // [P * (sub1(R) * 64)] bytes heap allocated.
397- const auto ptr = make_shared <std_array<block_t , sub1 (R)>>();
397+ const auto ptr = to_shared <std_array<block_t , sub1 (R)>>();
398398 if (!ptr) return false ;
399399 auto & yblock = *ptr;
400400 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -436,7 +436,7 @@ romix(rblock_t& rblock) NOEXCEPT
436436 // Make a working set of W rblocks.
437437 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
438438 // [P * (W * (R * 128))] bytes heap allocated.
439- const auto ptr = make_shared <wrblock_t >();
439+ const auto ptr = to_shared <wrblock_t >();
440440 if (!ptr) return false ;
441441 auto & wrblocks = *ptr;
442442 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -479,7 +479,7 @@ CLASS::hash(data_array<Size>& out, const data_slice& password,
479479 // Make a working set of P rblocks.
480480 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
481481 // [P * (R * 128)] bytes heap allocated.
482- const auto ptr = make_shared <prblock_t >();
482+ const auto ptr = to_shared <prblock_t >();
483483 if (!ptr) return false ;
484484 auto & prblocks = *ptr;
485485 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0 commit comments