Current section

Files

Jump to
nitrogen_core include crypto_compat.hrl
Raw

include/crypto_compat.hrl

-define(WF_ENCRYPT(Key, IV, Data), crypto:block_encrypt(aes_cbc128, Key, IV, Data)).
-define(WF_DECRYPT(Key, IV, Data), crypto:block_decrypt(aes_cbc128, Key, IV, Data)).
-define(WF_HASH(Data), crypto:hash(sha, Data)).