Add checks for PHP crypto related functions

This adds checks for some of the crypto functions that PHP supports. In a review, these methods certainly deserve attention.