Sodum::Sign::SecretKey may derive keys from a seed. Sodum::CryptoBox::Pair renamed to Sodum::CryptoBox::Box
9 lines
160 B
Crystal
9 lines
160 B
Crystal
require "spec"
|
|
require "../src/sodium"
|
|
|
|
def check_wiped(buf : Bytes)
|
|
GC.collect
|
|
buf.each do |b|
|
|
raise "not wiped #{buf.inspect}" if b != 0_u8
|
|
end
|
|
end
|