Use new error API for Cipher and Hash exceptions