Split key_t into key_secret_t and key_public_t