api calls to crypt library in portibality layer