Update crypto code