HSM implementation started, helper functions