Update crypto.cpp

Split a single static_assert into multiple static_asserts to compile-time diagnostics.