swapped securedata & securekey