Made Encrypt LINUX Kernel Ready

Added kmalloc/kfree and BUG_ON code in defines to replace malloc/free
and assert