Consolidate core crypto tests under `tests/core/crypto` (cherry picked from commit c9899fcf9d47b02070e4e6e928c348b3207f661b)