Added prilimary crypto primitives.