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 hmac
To use this library in your code:
import crypto.hmac
Classes
Hmac
HMAC keyed hashing for message authentication.
HmacSha224
HMAC using Sha-224 as the underlying hash.
HmacSha256
HMAC using Sha-256 as the underlying hash.
HmacSha384
HMAC using Sha-384 as the underlying hash.
HmacSha512
HMAC using Sha-512 as the underlying hash.
Functions
hmac-sha224
--key/
any
data/
any
->
ByteArray
Computes the HMAC using Sha-224 of the given
data
.
The
data
must be a string or byte array.
The
key
(secret) must be a string or byte array.
hmac-sha256
--key/
any
data/
any
->
ByteArray
Computes the HMAC using Sha-256 of the given
data
.
The
data
must be a string or byte array.
The
key
(secret) must be a string or byte array.
hmac-sha384
--key/
any
data/
any
->
ByteArray
Computes the HMAC using Sha-384 of the given
data
.
The
data
must be a string or byte array.
The
key
(secret) must be a string or byte array.
hmac-sha512
--key/
any
data/
any
->
ByteArray
Computes the HMAC using Sha-512 of the given
data
.
The
data
must be a string or byte array.
The
key
(secret) must be a string or byte array.