adjust code to Nocrypto API change

 no distinction between hash and mac