Replace calls to crypto functions with variants introduced in R16B

The previous variants have been deprecated and raise warnings during the compilation process.