Rearrange CryptoBox. Move Sodium::Error to it's own file. Requiring individual files is now possible. Individual require now possible.
14 lines
223 B
Crystal
14 lines
223 B
Crystal
require "spec"
|
|
|
|
# require "../src/sodium"
|
|
|
|
def check_wiped(buf : Bytes)
|
|
GC.collect
|
|
buf.each do |b|
|
|
if b != 0_u8
|
|
puts "not wiped #{buf.inspect}"
|
|
# raise "not wiped #{buf.inspect}"
|
|
|
|
end
|
|
end
|
|
end
|