class Digest::SHA3

Direct Known Subclasses

Defined in:

digest/sha3.cr

Constant Summary

DOMAIN = Domain::SHA3
HASH_SIZES = [224, 256, 384, 512]
PILN = [10, 7, 11, 17, 18, 3, 5, 16, 8, 21, 24, 4, 15, 23, 19, 13, 12, 2, 20, 14, 22, 9, 6, 1]
RNDC = [1, 32898, 9223372036854808714_u64, 9223372039002292224_u64, 32907, 2147483649_i64, 9223372039002292353_u64, 9223372036854808585_u64, 138, 136, 2147516425_i64, 2147483658_i64, 2147516555_i64, 9223372036854775947_u64, 9223372036854808713_u64, 9223372036854808579_u64, 9223372036854808578_u64, 9223372036854775936_u64, 32778, 9223372039002259466_u64, 9223372039002292353_u64, 9223372036854808704_u64, 2147483649_i64, 9223372039002292232_u64]
ROTC = [1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 2, 14, 27, 41, 56, 8, 25, 43, 62, 18, 39, 61, 20, 44]

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(hash_size = 512) #

[View source]

Class Method Detail

def self.base64digest(string_or_slice : String | Bytes) : String #

[View source]
def self.digest(string : String) : Bytes #

[View source]
def self.digest(slice : Bytes) : Bytes #

[View source]
def self.hexdigest(string_or_slice : String | Bytes) : String #

[View source]

Instance Method Detail

def hexdigest : String #

[View source]
def input(s) #

Crystal-style method name


[View source]
def reset #

[View source]
def result #

[View source]
def update(s : String) #

Ruby-style method names


[View source]
def update(s : Bytes) #

[View source]