Removed bouncy castle dependencies from api module.