Update crypto functions