mochi/mochiweb — pull request #115 by ferd (2013-07-16 15:19:05+00:00)
Title: Crypto leap forward for R16B01+

Starting R16B01, crypto functions for hashing and block encryption
are to be deprecated from their individual `crypto:Name(...)` form to
`crypto:Type(Name, ...)` as a form.

This pull req moves forward with the change, which is incompatible
with R16B and earlier versions. The `crypto:aes_cfb_128_encrypt/3`
and `crypto:aes_cfb_128_decrypt/3` functions are replaced by
`crypto:block_encrypt/4` and `crypto:block_decrypt/4`, which didn't yet
exist in R16B.

The pull req can be made backwards compatible on-demand by
using a `try ... catch` for `{error, undef}`, if requested.