Skip to main content

SHA3

SHA3​

Kind: global class
this: {"{"}SHA3{"}"}

new SHA3(olen)​

Creates an instance of SHA3

ParamDescription
olenoutput length

shA3.init(olen)​

Initialise an instance of SHA3

Kind: instance method of SHA3
this: {"{"}SHA3{"}"}

ParamDescription
olenoutput length

shA3.process()​

Process a byte for SHA3

Kind: instance method of SHA3
this: {"{"}SHA3{"}"}
Byt: byte of date to be processed

shA3.hash(buff)​

Create fixed length hash output of SHA3

Kind: instance method of SHA3
this: {"{"}SHA3{"}"}

ParamDescription
buffbyte array to store hash

shA3.shake(buff, olen)​

Create variable length hash output of SHA3

Kind: instance method of SHA3
this: {"{"}SHA3{"}"}

ParamDescription
buffbyte array to store hash
olenlength of the hash