The last entry in the linked post seems to describe how to do the same with the newer crypto functions. Unknown cipher when encrypting data - #18 by CafeRacer
In your case it seems like you have all data needed to use :crypto.crypto_one_time_aead
In general most crypto primitives can be found in the :crypto
module. It is shipped with OTP and are a collection of functions that uses openssl underneath through a NIF. Most other crypto packages are wrappers around crypto or before erlang 22.0 to provide functionality crypto did not yet support.