Update shared/crypto.cpp