2020-06-29 01:30:17 +02:00
|
|
|
require "log"
|
2017-07-12 05:13:52 +02:00
|
|
|
require "spec"
|
2019-07-01 15:24:26 +02:00
|
|
|
|
|
|
|
# require "../src/sodium"
|
2019-06-29 21:44:47 +02:00
|
|
|
|
|
|
|
def check_wiped(buf : Bytes)
|
|
|
|
GC.collect
|
|
|
|
buf.each do |b|
|
2019-06-30 04:20:30 +02:00
|
|
|
if b != 0_u8
|
|
|
|
puts "not wiped #{buf.inspect}"
|
|
|
|
# raise "not wiped #{buf.inspect}"
|
|
|
|
end
|
2019-06-29 21:44:47 +02:00
|
|
|
end
|
|
|
|
end
|