2019-07-01 15:24:26 +02:00
|
|
|
require "random/secure"
|
|
|
|
|
|
|
|
module Sodium
|
|
|
|
class Error < ::Exception
|
|
|
|
class VerificationFailed < Error
|
|
|
|
end
|
|
|
|
|
|
|
|
class DecryptionFailed < Error
|
|
|
|
end
|
2019-08-06 03:49:17 +02:00
|
|
|
|
|
|
|
class MemcmpFailed < Error
|
|
|
|
end
|
2019-07-01 15:24:26 +02:00
|
|
|
end
|
|
|
|
end
|