Libraries
bignum
binary
bitmap
ble
bytes
core
crypto
adler32
aes
blake2
chacha20
checksum
cmac
crc
ec
hamming
hkdf
hmac
md5
rsa
sha
sha1
sha256
siphash
device
encoding
esp32
expect
fixed-point
flash
font
gpio
i2c
i2s
icons
io
line-wrap
log
math
monitor
net
pulse-counter
reader
reader-writer
rmt
serial
spi
statistics
system
tls
uart
uuid
writer
zlib
Library siphash
To use this library in your code:
import crypto.siphash
SipHash
See
https://en.wikipedia.org/wiki/SipHash
Classes
Siphash
SipHash state.
Functions
siphash
data/
Data
key/
ByteArray
--output-length/
int
=
16
--c-rounds/
int
=
2
--d-rounds/
int
=
4
from/
int
=
0
to/
int
=
data.byte-size
->
ByteArray
Calculates the SipHash of the given
data
.
The
data
must be a string or a byte array.
The
key
must be a 16 element byte array.
The
output-length
must be 8 or 16 bytes.