Update crypto functions.