add api wrappers around hash function