ima: provide dedicated hash algo allocation function