I can run a command like the following in my script on linux:
openssl dgst -sha256 \
-mac HMAC \
-macopt hexkey:xxxx
But this command fails on mac os with the error
unknown option '-mac'
I've tried sifting through man pages and online but I can't find any way to accomplish similar task using mac's version of openssl?