module Sodium

Defined in:

sodium.cr
sodium/crypto_box.cr
sodium/error.cr
sodium/kdf.cr
sodium/key.cr
sodium/lib_sodium.cr:11
sodium/lib_sodium.cr:434
sodium/nonce.cr
sodium/secret_box.cr
sodium/secure_buffer.cr
sodium/sign/public_key.cr
sodium/sign/secret_key.cr
sodium/version.cr

Constant Summary

VERSION = "1.2.3"

Class Method Summary

Class Method Detail

def self.memcmp(a : Bytes, b : Bytes) : Bool #

Constant time memory compare.


[View source]
def self.memcmp!(a, b) #

Constant time memory compare. Raises unless comparison succeeds.


[View source]
def self.memzero(bytes : Bytes) : Nil #

[View source]
def self.memzero(str : String) : Nil #

[View source]