ima: rename hash calculation functions