Functional encryption wrapper working.