Updating crypto functions.