Unified architecture for crypto functional unitsпатент