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 sha
To use this library in your code:
import crypto.sha
Secure Hash Algorithm (SHA-224, SHA-256, SHA-384, and SHA-512).
This implementation uses hardware accelerated primitives.
See
https://en.wikipedia.org/wiki/SHA-256
.
Classes
Sha224
SHA-224 hash state.
Sha256
SHA-256 hash state.
Sha384
SHA-384 hash state.
Sha512
SHA-512 hash state.
Functions
sha224
data/
Data
from/
int
=
0
to/
int
=
data.byte-size
->
ByteArray
Computes the SHA224 hash of the given
data
.
sha256
data/
Data
from/
int
=
0
to/
int
=
data.byte-size
->
ByteArray
Computes the SHA256 hash of the given
data
.
sha384
data/
Data
from/
int
=
0
to/
int
=
data.byte-size
->
ByteArray
Computes the SHA384 hash of the given
data
.
The
data
must be a string or byte array.
sha512
data/
Data
from/
int
=
0
to/
int
=
data.byte-size
->
ByteArray
Computes the SHA512 hash of the given
data
.
The
data
must be a string or byte array.