Added support for buffer allocation for storing hash and mapping the buffer to user space.

Signed-off-by: Furquan Shaikh <furquan.m.shaikh@gmail.com>